Point64.fromPointD constructor

Point64.fromPointD(
  1. PointD point, {
  2. double scale = 1,
})

Create a Point64 from a PointD, optionally scaling the coordinates by scale.

Implementation

factory Point64.fromPointD(PointD point, {double scale = 1}) =>
    Point64((point.x * scale).round(), (point.y * scale).round(), point.z);