dlsl.trackball

dlsl.trackball

Members

Functions

lookAtView
auto lookAtView(vec3 eye, vec3 target = vec3(0), vec3 up = vec3(0, 1, 0))

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

lookAtView
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)

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

lookAtWorld
auto lookAtWorld(vec3 eye, vec3 target = vec3(0), vec3 up = vec3(0, 1, 0))

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

lookAtWorld
auto lookAtWorld(float ex, float ey, float ez, float tx = 0, float ty = 0, float tz = 0, float ux = 0, float uy = 1, float uz = 0)

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

Meta

Authors

Peter Particle

License

MIT

Note: All methods marked with pure are weakly pure since, they all access an instance member. All static methods are strongly pure.