Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.21 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.21 KB

MIT License

TurboMath

TurboMath is an all inline SIMD C++ Math-Library for use in Games and Graphics Windows-Apps

Example

Vector4 vec1,vec2;
vec1.NullVec();
vec2.Set(100.0f,100.0f,100.0f);
vec1 += vec2;
vec2 = vec1;


Matrix mat1;
mat1.Identity();

vec1 *= mat1;
vec2 = vec1 * mat1;

Requirements

The only required features are a C++ compiler with SSE-support on your target platform.

How to use

#include "TurboMath.h"
using namespace TurboMath

Features

  • fast inline SSE2-Code with VectorCall (Calling-Convention)
  • Vector2, Vector3, Vector4, Point2, Point3, Point4, AAB, OBB, Ray, Line, Plane, Camera, MoveController
  • Color-Class with many predefined Color´s
  • Matrix (4x4)
  • Quaternion
  • Conversion construction and assignment
  • Basic operators +, *, -, / for all Types
  • Per-component comparison operators ==, !=, >, <, >=, <=
  • Collision-Tests for Ray, ABB, OBB, Sphere, Triangle, Plane, Frustum etc
  • many Additional Matrix Functions: Determinant, Transpose, Inverse, LockAt etc
  • WayPoints with Interpolation

Missing/planned:

  • swizzling
  • boolN types
  • SSE3 / SSE4.x / AVX support
  • Octree / BSP / BVH - classes