fromElements

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

Creates a Cartesian2 instance from x and y coordinates.

Return

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

Parameters

x

The x coordinate.

y

The y coordinate.

result

The object onto which to store the result.

See also