Namespace Robust.Shared.Maths
Classes
DirectionExtensions
Extension methods for Direction enum.
MathHelper
Contains common mathematical functions and constants.
NumericsHelpers
Vector2Helpers
Structs
Angle
A representation of an angle, in radians.
Box2
Axis Aligned rectangular box in world coordinates. Uses a right-handed coordinate system. This means that X+ is to the right and Y+ up.
Box2i
Box2iEdgeEnumerator
Iterates neighbouring tiles to a box2i.
Box2Rotated
This type contains a Box2 and a rotation Angle in world space.
Circle
Represents a circle with a 2D position and a radius.
Color
Represents a color with 4 floating-point components (R, G, B, A).
Matrix22
Matrix3
Matrix33
Matrix4
Represents a 4x4 Matrix
Quaternion
Represents a Quaternion.
Thickness
UIBox2
Axis Aligned rectangular box in screen coordinates. Uses a left-handed coordinate system. This means that X+ is to the right and Y+ down.
UIBox2i
Vector2d
Vector2i
Vector2u
Vector3
Represents a 3D vector using three single-precision floating-point numbers.
Vector3d
Vector4
Represents a 4D vector using four single-precision floating-point numbers.
Vector4d
Interfaces
IApproxEquatable<T>
Approximate equality checking, to handle floating point errors.