unscaleBy method

  1. @override
Coordinate unscaleBy(
  1. UPoint point
)
override

Implementation

@override
Coordinate unscaleBy(UPoint point) {
  Coordinate c = point is Coordinate ? point : Coordinate.from(point);
  return Coordinate(
    (c.x == 0) ? 0 : (x / c.x),
    (c.y == 0) ? 0 : (y / c.y),
    (c.z == 0) ? 0 : (z / c.z),
  );
}