mathnet-spatial
mathnet-spatial copied to clipboard
Multiply CoordinateSystem and Vector3D is without offset
The offset is ignored in this method and similar ones: https://github.com/mathnet/mathnet-spatial/blob/master/src/Spatial/Euclidean/CoordinateSystem.cs#L432
What you have to do is to convert the vector from (x,y,z) to (x,y,z,1) and multiply it with the matrix, then divide (x,y,z) with the value of w and return (x,y,z).
The CoordinateSystem class is a huge mess. The API and perf is really poor. Do you want to have a go at fixing the bug with a PR?
Thanks but no thanks. I am just looking for something that works :)
@Ralle why do you say that we need offset for vectors? The offset (or origin) is only relevant for points. The updated line is this https://github.com/mathnet/mathnet-spatial/blob/master/src/Spatial/Euclidean/CoordinateSystem.cs#L378.
Do you agree?