API Reference › IVec2 › IVec2.to_vector
method

IVec2.to_vector

IVec2.to_vector(v) -> Vector

Widens an integer vector into a fixed-point Vector, so a grid coordinate can flow into the sub-pixel Vector.* math (interpolation, rotation, length).

Example

program Demo {
  handler Step phase Update {
    let world = IVec2.to_vector(cell)
  }
}
← All symbols