multiplyByScalar

fun multiplyByScalar(quaternion: Quaternion, scalar: Double, result: Quaternion): Quaternion(source)

Multiplies the provided quaternion componentwise by the provided scalar.

Return

The modified result parameter.

Parameters

quaternion

The quaternion to be scaled.

scalar

The scalar to multiply with.

result

The object onto which to store the result.

See also