Point4

class common.Point4()

Index

Constructors

Properties

Methods

Constructors

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

Parameters

x: number

y: number

z: number

w: number

Returns: Point4

Properties

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

Methods

static common.Point4.zero()

static

zero(): Point4

Returns: Point4

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

Parameters

point: IPoint4

Returns: void

common.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.
common.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.
common.Point4.scale()
scale(k: number): this

Parameters

k: number

Returns: this

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

Parameters

x: number

y: number

z: number

w: number

Returns: void