projectCoords abstract method
Projects positions from source
and returs a list of projected values.
Use the required type
to explicitely specify the type of coordinates.
The source
array contains coordinate values of positions as a flat
structure. For example for Coords.xyz
the first three coordinate values
are x, y and z of the first position, the next three coordinate values are
x, y and z of the second position, and so on.
The length of the target
array, when given, must be exactly same as the
length of the source
array, and target
must be a mutable list. If
target
is null, then a new list instance is created.
Throws FormatException if cannot project.
Implementation
List<double> projectCoords(
Iterable<double> source, {
List<double>? target,
required Coords type,
});