Packages

final case class Segment3D(p1: Point3D, p2: Point3D) extends Geometry3D with Segment with Product with Serializable

The instance of a limited span between two geometric coordinate positions, called "endpoints". Unlike mathematical lines, slope is treated the same as the vector leading from one point to the other and is the length of the segment.

p1

a point

p2

another point

Source
PrimitiveShape.scala
Linear Supertypes
Serializable, Product, Equals, Segment, Slope, Geometry3D, PrimitiveGeometry, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Segment3D
  2. Serializable
  3. Product
  4. Equals
  5. Segment
  6. Slope
  7. Geometry3D
  8. PrimitiveGeometry
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Segment3D(p1: Point3D, p2: Point3D)

    p1

    a point

    p2

    another point

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asLine: Line3D

    Transform the segment into a matheatical line of the same slope.

    Transform the segment into a matheatical line of the same slope.

    Definition Classes
    Segment3DSegment
  6. def center: Point3D

    The center point of a segment is a position that is equally in between both endpoints.

    The center point of a segment is a position that is equally in between both endpoints.

    returns

    a point

    Definition Classes
    Segment3DGeometry3DPrimitiveGeometry
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def d: Vector3

    The slope itself.

    The slope itself.

    returns

    a Vector3 entity

    Definition Classes
    Segment3DSlope
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def length: Float

    How long the slope goes on for.

    How long the slope goes on for.

    returns

    The length of the slope

    Definition Classes
    SegmentSlope
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. val p1: Point3D

    The first point, considered the "start".

    The first point, considered the "start".

    Definition Classes
    Segment3DSegment
  18. val p2: Point3D

    The second point, considered the "end".

    The second point, considered the "end".

    Definition Classes
    Segment3DSegment
  19. def pointOnOutside(v: Vector3): Point3D

    Find a point on the exterior of the geometry if a line was drawn outwards from the centroid.

    Find a point on the exterior of the geometry if a line was drawn outwards from the centroid. What counts as "the exterior" is limited to the complexity of the geometry.

    v

    the vector in the direction of the point on the exterior

    returns

    a point

    Definition Classes
    Geometry3DPrimitiveGeometry
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Segment

Inherited from Slope

Inherited from Geometry3D

Inherited from PrimitiveGeometry

Inherited from AnyRef

Inherited from Any

Ungrouped