final case class Point(x: Float, y: Float, z: Float) extends VolumetricGeometry with geometry.Point with Product with Serializable
The instance of a minute geometric coordinate position in three-dimensional space. The point is allowed to substitute for a sphere of zero radius, hence why it is volumetric (ignoring that a sphere of zero radius has no volume).
- x
the 'x' coordinate of the position
- y
the 'y' coordinate of the position
- z
the 'z' coordinate of the position
- Source
- Point.scala
- See also
Vector3
- Alphabetic
- By Inheritance
- Point
- Serializable
- Product
- Equals
- Point
- VolumetricGeometry
- Geometry3D
- PrimitiveGeometry
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Point(x: Float, y: Float, z: Float)
- x
the 'x' coordinate of the position
- y
the 'y' coordinate of the position
- z
the 'z' coordinate of the position
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 asVector3: Vector3
Transform the point into the common interchangeable format for coordinates.
- def center: Point
The centroid of the geometry.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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 moveCenter(point: geometry.Point): VolumetricGeometry
Move the centroid of the shape to the given point
Move the centroid of the shape to the given point
- point
the new center point
- returns
geometry centered on the new point; ideally, should be the same type of geometry as the original object
- Definition Classes
- Point → VolumetricGeometry → Geometry3D → PrimitiveGeometry
- 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()
- def pointOnOutside(v: Vector3): Point
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
- Point → VolumetricGeometry
- 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()
- val x: Float
- val y: Float
- val z: Float