getLocalVector method

Vector2 getLocalVector (Vector2 worldVector)

Gets a local vector given a world vector.

@param a vector in world coordinates. @return the corresponding local vector.

Implementation

Vector2 getLocalVector(Vector2 worldVector) {
  Vector2 out = new Vector2.zero();
  getLocalVectorToOut(worldVector, out);
  return out;
}