times

operator fun times(scalar: Double): MotionState<U>(source)

Multiplies this motion state by a scalar, component-wise.

Return

A new MotionState with each component multiplied by the scalar

Parameters

scalar

The scalar to multiply by


operator fun times(scalar: Number): MotionState<U>(source)

Multiplies this motion state by a scalar, component-wise.

Return

A new MotionState with each component multiplied by the scalar

Parameters

scalar

The scalar to multiply by (converted to Double)