math.gl
math.gl copied to clipboard
math.gl has lookAt but not found targetTo
in gl_matrix: /**
- Generates a matrix that makes something look at something else.
- @param {mat4} out mat4 frustum matrix will be written into
- @param {ReadonlyVec3} eye Position of the viewer
- @param {ReadonlyVec3} center Point the viewer is looking at
- @param {ReadonlyVec3} up vec3 pointing up
- @returns {mat4} out */
function targetTo(out, eye, target, up)
but in math.gl only has a lookAt.I found the 'lookAt' is different from 'targetTo'