fromElements

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

Creates a Cartesian3 instance from x, y and z coordinates.

Return

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

Parameters

x

The x coordinate.

y

The y coordinate.

z

The z coordinate.

result

The object onto which to store the result.

See also