Point3m.from constructor

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

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

Implementation

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