PtM3

final
class PtM3(val xMetres: Double, val yMetres: Double, val zMetres: Double) extends ElemDbl3

3 dimensional point specified using metres Length as units rather than pure numbers. The Letter M was used rather L for Length to avoid confusion with the LL ending which is short for Latitude-longitude.

Companion
object
trait ElemDbl3
trait ElemDblN
trait SpecialT
class Object
trait Matchable
class Any

Value members

Concrete methods

def /(operator: Length): Pt3
def dbl1: Double
def dbl2: Double
def dbl3: Double
@inline
def dot(operand: PtM3): Area

Produces the dot product of this 2 dimensional distance Vector and the operand.

Produces the dot product of this 2 dimensional distance Vector and the operand.

def ifZPos[A](vPos: => A, vNeg: => A): A

Rotate around the X axis, viewed from positive X. A positive angle is anti clockwise.

Rotate around the X axis, viewed from positive X. A positive angle is anti clockwise.

Rotates this vector around the Y axis, viewed form positive Y through the given angle around the origin.

Rotates this vector around the Y axis, viewed form positive Y through the given angle around the origin.

@inline

Rotates the vector around the Y axis 180 degrees or Pi radians.

Rotates the vector around the Y axis 180 degrees or Pi radians.

@inline

rotates the vector around the Y axis 90 degrees or Pi/2 radians, clockwise.

rotates the vector around the Y axis 90 degrees or Pi/2 radians, clockwise.

@inline

rotates the vector around the Y axis, 90 degrees or Pi/2 radians, anticlockwise.

rotates the vector around the Y axis, 90 degrees or Pi/2 radians, anticlockwise.

Rotate around the Z axis, viewed from positive Z. A positive angle is anti clockwise.

Rotate around the Z axis, viewed from positive Z. A positive angle is anti clockwise.

@inline

Rotates the vector around the Z axis 180 degrees or Pi radians.

Rotates the vector around the Z axis 180 degrees or Pi radians.

@inline

rotates the vector around the Z axis 270 degrees anti clockwise or, 90 degrees or Pi/2 radians, clockwise.

rotates the vector around the Z axis 270 degrees anti clockwise or, 90 degrees or Pi/2 radians, clockwise.

@inline

rotates the vector around the Z axis, 90 degrees or Pi/2 radians, anticlockwise.

rotates the vector around the Z axis, 90 degrees or Pi/2 radians, anticlockwise.

override
def toString: String
Definition Classes
Any
def toXYIfZPositive: Option[PtM2]

Converts this Metres3 point to a Some[Metres2] point of the X and Y values, returns None if the Z value is negative.

Converts this Metres3 point to a Some[Metres2] point of the X and Y values, returns None if the Z value is negative.

def typeStr: String
def x: Length
def xNeg: Boolean
def xPos: Boolean
def xRotateRadians(rotationRadians: Double): PtM3

Rotate this 3D point defined in metres around the X Axis by the given parameter given in radians. Returns a new PtM3 point.

Rotate this 3D point defined in metres around the X Axis by the given parameter given in radians. Returns a new PtM3 point.

def xy: PtM2
def y: Length
def yNeg: Boolean
def yPos: Boolean
def z: Length
def zNeg: Boolean
def zPos: Boolean

Inherited methods

def dblsApprox(that: ElemDbl3, delta: Double): Boolean
Inherited from
ElemDbl3
def dblsEqual(that: ElemDbl3): Boolean
Inherited from
ElemDbl3

Concrete fields

val xMetres: Double
val yMetres: Double
val zMetres: Double