fromElements

fun fromElements(x: Double, y: Double, z: Double, w: Double, result: Cartesian4? = definedExternally): Cartesian4(source)

Creates a Cartesian4 instance from x, y, z and w coordinates.

Return

The modified result parameter or a new Cartesian4 instance if one was not provided.

Parameters

x

The x coordinate.

y

The y coordinate.

z

The z coordinate.

w

The w coordinate.

result

The object onto which to store the result.

See also