Skip to content

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

License

Notifications You must be signed in to change notification settings

toasti1973/TurboMath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published