Point4

class Point4()

Constructors

Properties


Constructors

Point4.constructor(x, y, z, w)
Arguments
  • x (number()) – None

  • y (number()) – None

  • z (number()) – None

  • w (number()) – None

Return type

Point4

Properties

Point4.w
Type

number

Point4.x
Type

number

Point4.y
Type

number

Point4.z
Type

number

Methods

assign

Point4.assign(point)
Arguments
Return type

void

equals

Point4.equals(other)
Arguments
  • other (Point4()) – Point to compare with.

Strictly compares this point with another.

Returns

True if the values of this point equal those of the other.

Return type

boolean

equalsWithTolerance

Point4.equalsWithTolerance(other, tolerance)
Arguments
  • other (Point4()) – Point to compare with.

  • tolerance (number()) – Tolerance to be used in the comparison.

Compares this point with another using a tolerance.

Returns

True if the values of this point equal those of the other.

Return type

boolean

scale

Point4.scale(k)
Arguments
  • k (number()) – None

Return type

this

set

Point4.set(x, y, z, w)
Arguments
  • x (number()) – None

  • y (number()) – None

  • z (number()) – None

  • w (number()) – None

Return type

void

static zero

Point4.zero()
Return type

Point4