lookAtView

look at function with two points and an up vector, returns the view matrix (camera position and rotation matrix)

  1. auto lookAtView(vec3 eye, vec3 target = vec3(0), vec3 up = vec3(0, 1, 0))
    lookAtView
    (
    vec3 eye
    ,
    vec3 target = vec3(0)
    ,
    vec3 up = vec3(0, 1, 0)
    )
  2. auto lookAtView(float ex, float ey, float ez, float tx = 0, float ty = 0, float tz = 0, float ux = 0, float uy = 1, float uz = 0)

Meta