retrograde.math

Retrograde Engine

Members

Aliases

Matrix2D
alias Matrix2D = Matrix!(double, 2, 2)
Undocumented in source.
Matrix3D
alias Matrix3D = Matrix!(double, 3, 3)
Undocumented in source.
Matrix4D
alias Matrix4D = Matrix!(double, 4, 4)
Undocumented in source.
QuaternionD
alias QuaternionD = Quaternion!double
Undocumented in source.
RectangleD
alias RectangleD = Rectangle!double
Undocumented in source.
RectangleF
alias RectangleF = Rectangle!float
Undocumented in source.
RectangleI
alias RectangleI = Rectangle!int
Undocumented in source.
RectangleL
alias RectangleL = Rectangle!long
Undocumented in source.
RectangleU
alias RectangleU = Rectangle!uint
Undocumented in source.
RectangleUL
alias RectangleUL = Rectangle!ulong
Undocumented in source.
UnitVector2D
alias UnitVector2D = UnitVector!Vector2D
Undocumented in source.
UnitVector2F
alias UnitVector2F = UnitVector!Vector2F
Undocumented in source.
UnitVector3D
alias UnitVector3D = UnitVector!Vector3D
Undocumented in source.
UnitVector3F
alias UnitVector3F = UnitVector!Vector3F
Undocumented in source.
UnitVector4D
alias UnitVector4D = UnitVector!Vector4D
Undocumented in source.
Vector2D
alias Vector2D = Vector!(double, 2)
Undocumented in source.
Vector2F
alias Vector2F = Vector!(float, 2)
Undocumented in source.
Vector2I
alias Vector2I = Vector!(int, 2)
Undocumented in source.
Vector2L
alias Vector2L = Vector!(long, 2)
Undocumented in source.
Vector2R
alias Vector2R = Vector!(real, 2)
Undocumented in source.
Vector2U
alias Vector2U = Vector!(uint, 2)
Undocumented in source.
Vector2UL
alias Vector2UL = Vector!(ulong, 2)
Undocumented in source.
Vector3D
alias Vector3D = Vector!(double, 3)
Undocumented in source.
Vector3F
alias Vector3F = Vector!(float, 3)
Undocumented in source.
Vector3I
alias Vector3I = Vector!(int, 3)
Undocumented in source.
Vector3L
alias Vector3L = Vector!(long, 3)
Undocumented in source.
Vector3R
alias Vector3R = Vector!(real, 3)
Undocumented in source.
Vector3U
alias Vector3U = Vector!(uint, 3)
Undocumented in source.
Vector3UL
alias Vector3UL = Vector!(ulong, 3)
Undocumented in source.
Vector4D
alias Vector4D = Vector!(double, 4)
Undocumented in source.
scalar
alias scalar = double
Undocumented in source.

Classes

OrientationR2Component
class OrientationR2Component
Undocumented in source.
OrientationR3Component
class OrientationR3Component
Undocumented in source.
Position2DComponent
class Position2DComponent
Undocumented in source.
Position2IComponent
class Position2IComponent
Undocumented in source.
Position3DComponent
class Position3DComponent
Undocumented in source.
RelativeOrientationProcessor
class RelativeOrientationProcessor
Undocumented in source.
RelativeOrientationR2Component
class RelativeOrientationR2Component
Undocumented in source.
RelativePosition2DComponent
class RelativePosition2DComponent
Undocumented in source.
RelativePositionProcessor
class RelativePositionProcessor
Undocumented in source.
Scale3DComponent
class Scale3DComponent
Undocumented in source.

Functions

clamp
double clamp(double value, double min, double max)
Undocumented in source. Be warned that the author may not have intended to support it.
clamp
double clamp(double value, Option!double min, Option!double max)
Undocumented in source. Be warned that the author may not have intended to support it.
createFirstPersonViewMatrix
Matrix4D createFirstPersonViewMatrix(Vector3D eyePosition, double pitchInRadian, double yawInRadian)
Undocumented in source. Be warned that the author may not have intended to support it.
createLookatMatrix
Matrix4D createLookatMatrix(Vector3D eyePosition, Vector3D targetPosition, UnitVector3D upVector)
Undocumented in source. Be warned that the author may not have intended to support it.
createPerspectiveMatrix
Matrix4D createPerspectiveMatrix(double fovyDegrees, double aspectRatio, double near, double far)
Undocumented in source. Be warned that the author may not have intended to support it.
createRotationMatrix
Matrix4D createRotationMatrix(scalar radianAngle, double x, double y, double z)
Undocumented in source. Be warned that the author may not have intended to support it.
createRotationMatrix
Matrix3D createRotationMatrix(scalar radianAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
createRotationMatrix
Matrix4D createRotationMatrix(scalar radianAngle, Vector3D axis)
Undocumented in source. Be warned that the author may not have intended to support it.
createXRotationMatrix
Matrix4D createXRotationMatrix(double radianAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
createYRotationMatrix
Matrix4D createYRotationMatrix(double radianAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
createZRotationMatrix
Matrix4D createZRotationMatrix(double radianAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
degreesToRadians
double degreesToRadians(double degrees)
Undocumented in source. Be warned that the author may not have intended to support it.
deltaAngle
double deltaAngle(double sourceAngle, double targetAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(double a, double b, double tolerance)
Undocumented in source. Be warned that the author may not have intended to support it.
mod
double mod(double a, double n)
Undocumented in source. Be warned that the author may not have intended to support it.
radiansToDegrees
double radiansToDegrees(double radians)
Undocumented in source. Be warned that the author may not have intended to support it.
radiansToUnitVector
Vector2D radiansToUnitVector(double radians)
Undocumented in source. Be warned that the author may not have intended to support it.
toScalingMatrix
Matrix3D toScalingMatrix(Vector2D scalingVector)
Undocumented in source. Be warned that the author may not have intended to support it.
toScalingMatrix
Matrix4D toScalingMatrix(Vector3D scalingVector)
Undocumented in source. Be warned that the author may not have intended to support it.
toTranslationMatrix
Matrix3D toTranslationMatrix(Vector2D vector)
Undocumented in source. Be warned that the author may not have intended to support it.
toTranslationMatrix
Matrix4D toTranslationMatrix(Vector3D vector)
Undocumented in source. Be warned that the author may not have intended to support it.
wrapAngle
double wrapAngle(double angle)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Matrix
struct Matrix(T, uint Rows, uint Columns)
Undocumented in source.
Quaternion
struct Quaternion(T)
Undocumented in source.
Rectangle
struct Rectangle(T)
Undocumented in source.
UnitVector
struct UnitVector(VectorType)
Undocumented in source.
Vector
struct Vector(T, uint N)
Undocumented in source.

Variables

TwoPI
enum real TwoPI;
Undocumented in source.
standardSideVector
UnitVector3D standardSideVector;
Undocumented in source.
standardUpVector
UnitVector3D standardUpVector;
Undocumented in source.

Meta

Authors

Mike Bierlee, m.bierlee@lostmoment.com

License

This software is licensed under the terms of the MIT license. The full terms of the license can be found in the LICENSE.txt file.