Download Latest Version mymath.7z (13.6 kB)
Email in envelope

Get an email when there's a new version of libmymath

Home / libmymath v1.1.0
Name Modified Size InfoDownloads / Week
Parent folder
vec4f.h 2011-03-22 1.0 kB
vec4f.cpp 2011-03-22 2.1 kB
vec2f.h 2011-03-22 974 Bytes
vec3f.cpp 2011-03-22 1.9 kB
vec3f.h 2011-03-22 1.0 kB
vec2f.cpp 2011-03-22 1.7 kB
readme.txt 2011-03-22 1.4 kB
mymath_main.h 2011-03-22 2.9 kB
mymath_main.cpp 2011-03-22 19.5 kB
matrix_stack.h 2011-03-22 940 Bytes
matrix_stack.cpp 2011-03-22 4.1 kB
main.cpp 2011-03-22 1.9 kB
m4x4.h 2011-03-22 1.1 kB
m3x3.h 2011-03-22 929 Bytes
m4x4.cpp 2011-03-22 8.2 kB
Licence.txt 2011-03-22 439 Bytes
m3x3.cpp 2011-03-22 3.6 kB
CMakeLists.txt 2011-03-22 1.7 kB
Legal notes.txt 2011-03-22 1.5 kB
camera.h 2011-03-22 1.8 kB
Changelog.txt 2011-03-22 1.6 kB
camera.cpp 2011-03-22 10.8 kB
Totals: 22 Items   71.0 kB 0
--- Readme of mymath library ---

Welcome!

Let me introduce the mymath library. 
Mymath is a 3d maths library created with the intention to modernize 3d maths libraries, and meanwhile preserve simplicity and flexibility. 
Mymath is written in C++, it uses a modern object-oriented approach. 
It includes a camera class, which you can use for camera handling. 
It also includes a matrix stack class, which you can use as a replacement for the OpenGL functions. 
Mymath contains 2, 3, and 4 component vector classes and many functions using these classes. Mymath also contains 3x3 and 4x4 matrix classes. 
Mymath is based on the math3d library and contains similar functions. However these functions are modernized, and even some new functions are included.

Some important things to mention:
 -matrices are stored in row-major order see: http://en.wikipedia.org/wiki/Row-major_order
 -you can access matrices by using the “[]” operator (with value 0-8, and 0-15), and also by using the “get_2d_m3x3” function (and there is also a 4x4 version), 
  with which you can access matrices in a 2 dimensional manner
 -vectors are generally treated as row vectors, however in some cases they might be used as column ones
 -the “get_angle_bw_2_vec3f” requires the input vectors to be unit length, you can make them unit length with the “normalize_vec3f” function

You can find some examples in the “main.cpp” file.
Source: readme.txt, updated 2011-03-22