Matrix3, Matrix4, Quaternation?

Everything else that doesn't fall into one of the other PB categories.
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Matrix3, Matrix4, Quaternation?

Post 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
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post 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
~Dreglor
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

Your a star... thankyou so much :D
Post Reply