Results 1 to 2 of 2

Thread: Difference between GLKMatrix4Translate and GLKMatrix4MakeTranslation

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2013
    Posts
    8

    Difference between GLKMatrix4Translate and GLKMatrix4MakeTranslation

    I understand the idea behind a translation, including the math. What I don't understand is how these two functions differ from one another. I think that GLKMatrix4Translate is the same as a (4x4)*(4x4) matrix multiplication. But what is the GLKMatrix4MakeTranslation? When I test these two functions in my code, I get different results, so there is clearly a difference (or else there wouldn't be two different functions), but I don't understand what that difference is.

    Would somebody mind enlightening me? Thank you!

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    Posts
    896
    One makes a translation matrix (i.e. a matrix that represents a translation by the given vector), the other combines a translation with a given matrix and returns the combined matrix - see also the reference docs.

Similar Threads

  1. Can anyone tell me the difference?
    By Lee_Jennifer_82 in forum OpenGL: Basic Coding
    Replies: 16
    Last Post: 03-12-2016, 10:16 AM
  2. 0.0f vs 0f, what's the difference?
    By mpan3 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-01-2004, 08:20 PM
  3. ver. 1.3->1.4 ?difference?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-08-2002, 03:48 AM
  4. In VB what is the difference in hDC and hRC?
    By John Jenkins in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-26-2002, 01:47 PM
  5. difference between OGL & VTK?
    By alanchinese in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-07-2000, 08:17 AM

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