final case class Line3D(p: Point3D, d: Vector3) extends Geometry3D with Line with Product with Serializable
The instance of a geometric coordinate position and a specific direction from that position. Mathematical lines have infinite length and their slope is represented as a unit vector. The point is merely a point used to assist in defining the line.
- p
the point of origin
- d
the direction
- Source
- PrimitiveShape.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Line3D
- Serializable
- Product
- Equals
- Line
- Slope
- Geometry3D
- PrimitiveGeometry
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def center: Point3D
The centroid of the geometry.
The centroid of the geometry.
- returns
a point
- Definition Classes
- Line3D → Geometry3D → PrimitiveGeometry
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val d: Vector3
The slope itself.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Float
The length of a mathematical line is infinite.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val p: Point3D
- 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
- Geometry3D → PrimitiveGeometry
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()