mathnet-spatial icon indicating copy to clipboard operation
mathnet-spatial copied to clipboard

Math.NET Spatial

Results 62 mathnet-spatial issues
Sort by recently updated
recently updated
newest added

Cross product behaves differently depending on whether you pass it a UnitVector3D or a Vector3D, even if they are numerically identical. Example (from the VS immediate window): ``` UnitVector3D.ZAxis.CrossProduct(UnitVector3D.ZAxis) 'UnitVector3D.ZAxis.CrossProduct(UnitVector3D.ZAxis)'...

Vector2D inst = new Vector2D(15, -0.014999866485595703); Vector2D arg = new Vector2D(14.999354151329246, 0.14000013927224053); Angle signedAngleTo = inst.SignedAngleTo(arg, false, true); Result: Degrees -359.40793611193084 double Radians -6.27285184295062 double Fix - Change line 334:...

See https://en.wikipedia.org/wiki/Rotation_matrix#General_rotations for correct order of application. Counterintuitively, the YPR rotations must be applied in reverse order to be correct. The resultant rotation matrix should be Rz(Ry(Rx)) instead of Rx(Ry(Rz))...

Expose `IReadOnlyList` instead of `IEnumerable` for `PolyLine.Vertices` This change allows external methods to index or operate on the vertices without consuming additional memory by using `ToList()` or `ToArray()` or enumerating...

Just thought I should point out that the copyright date on https://spatial.mathdotnet.com/License.html only goes through 2019. But on https://github.com/mathnet/mathnet-spatial/blob/master/LICENSE.md the text is the same yet the date is current (2021).

I just visited the website: _https://spatial.mathdotnet.com/Contributing.html_ I would like to contribute to the project, adding a little bit to the XML documentation with examples and adding new methods of geometric...

This pull-request is asking for help to solve #178. The problem is that `LineSegment2D.TryIntersect()` always passes by reference `Point2D` of intersection, regardless of whether the two `LineSegment2D` actually have a...

Ref: https://github.com/mathnet/mathnet-spatial/blob/master/src/Spatial/Euclidean/Plane.cs Here's the main body of `FromPoints`: if (p1 == p2 || p1 == p3 || p2 == p3) { throw new ArgumentException("Must use three different points"); } var...

`Plane.FromPoints()` will throw exceptions if the arguments don't actually form a plane. For instance, if you give it 3 points on the same line. I have some cases where I...

enhancement