Cartesian4

external class Cartesian4(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally, var w: Double = definedExternally)(source)

A 4D Cartesian point.

See also

Constructors

Link copied to clipboard
constructor(x: Double = definedExternally, y: Double = definedExternally, z: Double = definedExternally, w: Double = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard
var w: Double

The W component. Default value - 0.0

Link copied to clipboard
var x: Double

The X component. Default value - 0.0

Link copied to clipboard
var y: Double

The Y component. Default value - 0.0

Link copied to clipboard
var z: Double

The Z component. Default value - 0.0

Functions

Link copied to clipboard
fun clone(result: Cartesian4? = definedExternally): Cartesian4

Duplicates this Cartesian4 instance.

Link copied to clipboard
fun equalsEpsilon(right: Cartesian4? = definedExternally, relativeEpsilon: Double? = definedExternally, absoluteEpsilon: Double? = definedExternally): Boolean

Compares this Cartesian against the provided Cartesian componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.