Page 1 of 1

Matrix3, Matrix4, Quaternation?

Posted: Sat Jan 20, 2007 3:40 am
by kawasaki
What are the purebasic equivelants of;

Matrix3, Matrix4, and Quaternation...

Vector3 and Vector4 ive worked out myself;

Code: Select all

Structure Vector3
  x.d
  y.d
  z.d
Endstructure

Structure Vector4
  x.f
  y.f
  z.f
  w.f
Endstructure

Posted: Sat Jan 20, 2007 10:44 am
by Dreglor
well vector3 isn't 100% accuret
if your using theses structures for directx or some 3d engine they are going to use floats solely and not not used doubles particually

so this is what all of those structures should be

Code: Select all

Structure Vector3
  x.f
  y.f
  z.f
EndStructure

Structure Vector4
  x.f
  y.f
  z.f
  w.f
EndStructure

Structure Row3
  Column.f[3]
EndStructure

Structure Matrix3
  Row.Row3[3]
EndStructure

Structure Row4
  Column.f[4]
EndStructure

Structure Matrix4
  Row.Row4[4]
EndStructure

Structure Quaternation
  x.f
  y.f
  z.f
  w.f
EndStructure

Posted: Sat Jan 20, 2007 5:16 pm
by kawasaki
Your a star... thankyou so much :D