mathnet / mathnet-spatial

Math.NET Spatial
http://spatial.mathdotnet.com
MIT License
378 stars 133 forks source link

Add orthogonal to Vector2D #165

Closed EMostafaAli closed 5 years ago

EMostafaAli commented 5 years ago

Similar to what we have in Vector3D, I added Orthogonal for Vector2D

JohanLarsson commented 5 years ago

I regretted including Vector3D.Orthogonal in the library a bit. But given that it makes sense with symmetry, either make it [Obsolete] or add it to 2D as this PR.

EMostafaAli commented 5 years ago

@JohanLarsson, I think it is nice to have it. Here is AutoCAD API showing the same implementation. https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_Geometry_Vector3d_GetPerpendicularVector

cdrnet commented 5 years ago

Thanks!