Click or drag to resize

Syroot.Maths Namespace

The Maths namespace provides classes and structures to simplify mathematical operations.
Classes
  ClassDescription
Public classAlgebra
Represents a set of mathematical (extension) methods.
Structures
  StructureDescription
Public structureColor
Represents a 4-component color with the components red, green, blue and alpha, representing each value as a byte.
Public structureColorF
Represents a 4-component color with the components red, green, blue and alpha, representing each value as a float.
Public structureMatrix2
Represents a matrix with 2 rows and 2 columns in row-major notation.
Public structureMatrix2x3
Represents a matrix with 2 rows and 3 columns in row-major notation.
Public structureMatrix2x4
Represents a matrix with 2 rows and 4 columns in row-major notation.
Public structureMatrix3
Represents a matrix with 3 rows and 3 columns in row-major notation.
Public structureMatrix3x2
Represents a matrix with 3 rows and 3 columns in row-major notation.
Public structureMatrix3x4
Represents a matrix with 3 rows and 4 columns in row-major notation.
Public structureMatrix4
Represents a matrix with 4 rows and 4 columns in row-major notation.
Public structureMatrix4x2
Represents a matrix with 4 rows and 3 columns in row-major notation.
Public structureMatrix4x3
Represents a matrix with 4 rows and 3 columns in row-major notation.
Public structureRectangle
Represents a rectangle specifying a position and size which uses integer values.
Public structureRectangleF
Represents a rectangle specifying a position and size which uses float values.
Public structureVector2
Represents a two-dimensional vector which uses integer values.
Public structureVector2Bool
Represents a two-dimensional vector which uses boolean values.
Public structureVector2F
Represents a two-dimensional vector which uses float values.
Public structureVector2U
Represents a two-dimensional vector which uses unsigned integer values.
Public structureVector3
Represents a three-dimensional vector which uses integer values.
Public structureVector3Bool
Represents a three-dimensional vector which uses boolean values.
Public structureVector3F
Represents a three-dimensional vector which uses float values.
Public structureVector3U
Represents a three-dimensional vector which uses unsigned integer values.
Public structureVector4
Represents a four-dimensional vector which uses integer values.
Public structureVector4Bool
Represents a four-dimensional vector which uses integer values.
Public structureVector4F
Represents a four-dimensional vector which uses float values.
Public structureVector4U
Represents a four-dimensional vector which uses unsigned integer values.
Interfaces
  InterfaceDescription
Public interfaceIEquatableByRefT
Defines a generalized method that a value type or class implements to create a type-specific method for determining equality of instances. Structures are passed by reference to avoid stack structure copying.
Public interfaceINearlyEquatableT
Defines a generalized method that a value type or class implements to create a type-specific method for determining nearly equality of instances with float values, ignoring rounding precision errors.
Public interfaceINearlyEquatableByRefT
Defines a generalized method that a value type or class implements to create a type-specific method for determining nearly equality of instances with float values, ignoring rounding precision errors. Structures are passed by reference to avoid stack structure copying.