operator - method

ImmutableVector3 operator -(
  1. Object v
)

Implementation

ImmutableVector3 operator -(Object v) {
  if (v is ImmutableVector3) {
    return (x: x - v.x, y: y - v.y, z: z - v.z);
  } else if (v is Vector3) {
    return (x: x - v.x, y: y - v.y, z: z - v.z);
  }
  throw UnsupportedError('${v.runtimeType}');
}