API Reference › Vector › Vector.scale
method

Vector.scale

Vector.scale(v, s) -> Vector

Returns v scaled by the fixed factor s. Multiply a direction by a speed, or a velocity by delta-time.

Example

program Demo {
  handler Step phase Update {
    let step = Vector.scale(direction, speed)
  }
}
← All symbols