Namespace Thunder.UnitsNET.Vectors.Geometry.MonoGame
Classes
- CurveDebugDrawExtensions
DebugDraw extension methods for curved shapes: Circle2, Ellipse2, Arc2, Sector2, and Capsule2.
- DebugDrawExtensions
Core DebugDraw infrastructure for rendering geometry shapes as wireframes using MonoGame's Microsoft.Xna.Framework.Graphics.SpriteBatch and a 1×1 pixel Microsoft.Xna.Framework.Graphics.Texture2D technique.
- GeometryXnaExtensions
Extension methods for converting Thunder.UnitsNET.Vectors.Geometry shapes to XNA/MonoGame rendering primitives.
All conversions take a
unitandpixelScaleparameter so the caller can explicitly control how physical distances map to screen pixels — for example,unit = LengthUnit.Meter, pixelScale = Ratio.FromDecimalFractions(64.0)means 1 metre = 64 pixels.Convenience overloads without scale default to
pixelScale = 1.0(one unit = one pixel). Overloads without unit default toLengthUnit.Meter.
- PolygonDebugDrawExtensions
DebugDraw extension methods for polygon-based shapes: Rectangle2, Triangle2, and Polygon2.
- PrimitiveDebugDrawExtensions
DebugDraw extension methods for linear and directional primitives: LengthSegment2, LengthRay2, LengthLine2, Transform2, and Direction2.
- Transform2XnaExtensions
Extension methods for converting Transform2 to XNA/MonoGame rendering primitives.