Welcome, Guest. Please login or register.

Author Topic: My Amos-vector question moved here  (Read 3402 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: My Amos-vector question moved here
« on: May 22, 2004, 05:49:26 PM »
I can't tell you anything AMOS specific, but I do know vector mathematics ;-)

Your best bet is to create a Vector type that has x,y,z,1. You can use a 4x4 matrix to perform any transformation on such a vector - rotation, scaling, translation, projection, you name it.

You can multiply these matrices together to create a matrix that can do transformation (scale, rotate, translate, etc.) of your data in a single vector*matrix step.

This is basically what OpenGL does to process polygons.
int p; // A