Point3m.fromText constructor
A point parsed from text
with coordinates given in order: x, y, z, m.
Coordinate values in text
are separated by delimiter
. For example
Point3m.fromText('10.0;20.0;30.0;5', delimiter: ';')
returns the same
point as Point3m.xyzm(10.0, 20.0, 30.0, 5)
.
If delimiter
is not provided, values are separated by whitespace.
Throws FormatException if cannot parse.
Implementation
factory Point3m.fromText(
String text, {
Pattern? delimiter,
}) =>
Point3m.from(
parseNumValuesFromText(text, delimiter: delimiter, minCount: 4),
);