math.gl icon indicating copy to clipboard operation
math.gl copied to clipboard

math.gl has lookAt but not found targetTo

Open FreeGIS opened this issue 5 years ago • 1 comments

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'

FreeGIS avatar Oct 26 '20 07:10 FreeGIS