Pages

Tuesday, July 13, 2010

dge math namespace

i wrote math namespace of dge which is include following classes:

- Matrix (4x4 float point matrix)
- Vectors ( 2D,3D and 4D vectors)
- Box
- Sphere
- Plane
- Ray
- Frustum
- and basic instructions like as (abs,min,max and ...)

must important operations of matrix,vector and box classes like matrix multiplication are doing with SSE instruction set but it can be also done by 3DNOW or x86-87 instruction set (you can set it in config.h file)

performance up in my system with SSE2 for matrix multiplication is about 50% and i can increase it by using 128 aligned class and data types but engine safety and "easy to use" is main purpose of me.

also I'm planning to add quaternions and other classes to math namespace (but not yet)

No comments:

Post a Comment