transformed method

Vector2 transformed (Vector2 arg, [ Vector2 out ])

Transform a copy of arg of type Vector2 using the transformation defined by this. If a out parameter is supplied, the copy is stored in out.

Implementation

Vector2 transformed(Vector2 arg, [Vector2 out]) {
  if (out == null) {
    out = new Vector2.copy(arg);
  } else {
    out.setFrom(arg);
  }
  return transform(out);
}