Point3.from constructor

Point3.from(
  1. Iterable<num> coords, {
  2. int? offset,
})

A point from coords given in order: x, y, m.

Implementation

factory Point3.from(Iterable<num> coords, {int? offset}) {
  final start = offset ?? 0;
  return Point3.xyz(
    coords.elementAt(start),
    coords.elementAt(start + 1),
    coords.elementAt(start + 2),
  );
}