PtM3

ostrat.geom.PtM3
See thePtM3 companion object
final class PtM3(val xMetres: Double, val yMetres: Double, val zMetres: Double) extends PointDbl3

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.

Attributes

Companion
object
Graph
Supertypes
trait PointDbl3
trait Dbl3Elem
trait PointDblN
trait DblNElem
trait ValueNElem
trait SpecialT
trait Point
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

override type LineSegT = LineSegM3

The type of LineSegLike that this Point can start or ends.

The type of LineSegLike that this Point can start or ends.

Attributes

override type ThisT = PtM3

The type of this point for the purposes of LineSegT. May not be the final type.

The type of this point for the purposes of LineSegT. May not be the final type.

Attributes

Value members

Concrete methods

def /(operator: Length): Pt3
def dbl1: Double
def dbl2: Double
def dbl3: Double
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.

Attributes

def ifZPos[A](vPos: => A, vNeg: => A): A
def kmStr: String
override def lineSegFrom(startPt: PtM3): LineSegM3

LinSegLike from the parameter point to this point.

LinSegLike from the parameter point to this point.

Attributes

Definition Classes
override def lineSegTo(endPt: PtM3): LineSegM3

LineSegLike from this point to the parameter point.

LineSegLike from this point to the parameter point.

Attributes

Definition Classes
def rotateX(a: AngleVec): PtM3

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.

Attributes

def rotateY(a: AngleVec): PtM3

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.

Attributes

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

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

Attributes

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.

Attributes

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.

Attributes

def rotateZ(a: AngleVec): PtM3

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.

Attributes

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

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

Attributes

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.

Attributes

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.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

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.

Attributes

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.

Attributes

def xy: PtM2
def xyLengthFrom(operand: PtM2): Length

The distance in the XY plane from an operand PtM2, the default being from the origin.

The distance in the XY plane from an operand PtM2, the default being from the origin.

Attributes

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

Inherited methods

override def dblBufferAppend(buffer: ArrayBuffer[Double]): Unit

Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.

Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.

Attributes

Definition Classes
Inherited from:
Dbl3Elem
override def dblForeach(f: Double => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
Dbl3Elem
def dblsApprox(that: Dbl3Elem, delta: Double): Boolean

Attributes

Inherited from:
Dbl3Elem
def dblsEqual(that: Dbl3Elem): Boolean

Attributes

Inherited from:
Dbl3Elem

Concrete fields