This is a C++ math library containing classes for vectors, matrices, quaternions, and elements of projective geometric algebra. The specific classes are the following:
Vector2D – A 2D vector (x, y) that extends to four dimensions as (x, y, 0, 0).
Vector3D – A 3D vector (x, y, z) that extends to four dimensions as (x, y, z, 0).
Vector4D – A 4D vector (x, y, z, w).
Point2D – A 2D point (x, y) that extends to four dimensions as (x, y, 0, 1).
Point3D – A 3D point (x, y, z) that extends to four dimensions as (x, y, z, 1).
Matrix2D – A 2×2 matrix.
Matrix3D – A 3×3 matrix.
Matrix4D – A 4×4 matrix.
Transform4D – A 4×4 matrix with fourth row always (0, 0, 0, 1).
Quaternion – A conventional quaternion xi + yj + zk + w.
请发表评论