Namespace Thunder.UnitsNET.Vectors.MonoGame
Classes
- GameTimeExtensions
Extension methods for Microsoft.Xna.Framework.GameTime that bridge MonoGame's time model to UnitsNet's UnitsNet.Duration type.
- LengthPixelScaleExtensions
Extension methods on UnitsNet.Length for constructing PixelScale values.
- XnaVector2Extensions
Extension methods for converting between XNA/MonoGame Microsoft.Xna.Framework.Vector2 and Thunder typed vector types.
- XnaVector3Extensions
Extension methods for converting between XNA/MonoGame Microsoft.Xna.Framework.Vector3 and Thunder typed vector types.
Structs
- Camera2
An immutable 2D camera that converts between world-space LengthPoint2 positions and screen-space Microsoft.Xna.Framework.Vector2 pixel coordinates.
Value type: Camera2 is a
readonly record struct. Declare camera fields asCamera2(notCamera2?) and initialise them before first use — an unassignedCamera2field isdefault, notnull, and a default camera has Scale of zero.
- PixelScale
Defines the relationship between world-space length and screen-space pixels, encoding both the scale factor and the world unit together.
Enums
- YAxisMode
Controls how the Y axis is mapped between world space and screen space during camera projection.