Point4

class Point4()

Index

Constructors

Properties

Methods

Constructors

Point4.constructor()
Point4(x: number, y: number, z: number, w: number): Point4

Parameters

x: number

y: number

z: number

w: number

Returns: Point4

Properties

Point4.w
w: number
Point4.x
x: number
Point4.y
y: number
Point4.z
z: number

Methods

Point4.assign()
assign(point: IPoint4): void

Parameters

point: IPoint4

Returns: void

Point4.equals()
equals(other: IPoint4): boolean

Strictly compares this point with another.

Parameters

other: IPoint4

Point to compare with.

Returns: boolean

True if the values of this point equal those of the other.
Point4.equalsWithTolerance()
equalsWithTolerance(other: IPoint4, tolerance: number): boolean

Compares this point with another using a tolerance.

Parameters

other: IPoint4

Point to compare with.

tolerance: number

Tolerance to be used in the comparison.

Returns: boolean

True if the values of this point equal those of the other.
Point4.scale()
scale(k: number): this

Parameters

k: number

Returns: this

Point4.set()
set(x: number, y: number, z: number, w: number): void

Parameters

x: number

y: number

z: number

w: number

Returns: void

static Point4.zero()

static

zero(): Point4

Returns: Point4