Class Point

A class that implements the Ttuple base type and represents a literal point a a 3-Dimensional Coordinate system

Example

const point = new Point(4, -4, 3)
point.components() // -> [4, -4, 3, 1]

Hierarchy

  • Point

Implements

Constructors

Properties

w x y z

Methods

Constructors

Properties

w: 1
x: number
y: number
z: number

Methods

  • This method gives the current state of the point instance

    Remarks

    This method returns 4 numbers, the first 3 representing the current position in the x,y,z coordinate system and a 4th number 'w' representing the fact that it is a Point and not a Vector

    Returns

    An array containing of numbers representing the current state/position of the Point instance

    Returns number[]

  • This method checks if the current point instance is identical to some other given point instance and that the other point is an instance of Point

    Parameters

    • other: Ttuple
    • EPS: number = 0.000001

    Returns boolean

  • Negates the values of the components of the Point, except for component w

    Returns void

Generated using TypeDoc