Results 1 to 2 of 2

Thread: CP

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    CP

    Well, can you tell me the crossproduct equation???


  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: CP

    inline VECTOR CROSSPRODUCT( const VECTOR &v1, const VECTOR &v2 )
    {
    return VECTOR( (v1.y * v2.z) - (v2.y * v1.z),
    (v1.z * v2.x) - (v2.z * v1.x),
    (v1.x * v2.y) - (v2.x * v1.y) );
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean