multiplyByScalar

fun multiplyByScalar(cartesian: Cartesian2, scalar: Double, result: Cartesian2): Cartesian2(source)

Multiplies the provided Cartesian componentwise by the provided scalar.

Return

The modified result parameter.

Parameters

cartesian

The Cartesian to be scaled.

scalar

The scalar to multiply with.

result

The object onto which to store the result.

See also