transformed2 method

Vector2 transformed2(
  1. Vector2 position, [
  2. Vector2? out
])

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

Implementation

Vector2 transformed2(Vector2 position, [Vector2? out]) {
  if (out == null) {
    // ignore: parameter_assignments
    out = Vector2.copy(position);
  } else {
    out.setFrom(position);
  }
  return transform2(out);
}