Silk.NET
Silk.NET copied to clipboard
Proposal - 3.0 Additional types for Silk.NET.Maths
Summary of the PR
A proposal for additional types to the Silk.NET.Maths library for 3.0.
Related issues, Discord discussions, or proposals
As discussed in discord with the SilkX team.
@dotnet-policy-service agree
Provisionally adding this to the next working group meeting agenda (date not yet set)
Angle (and other such types) shouldn't have a public constructor, that completely voids the point of having the type as it's not clear what underlying unit is being passed in without reading the code. That's why we have FromDegrees and FromRadians. Angle.Sin(new Angle(1.0)) is no more clear than Math.Sin(1.0), but Angle.Sin(Angle.FromRadians(1.0)) is.