Home
last modified time | relevance | path

Searched refs:newUp (Results 1 – 2 of 2) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/renderer/
DCamera.java816 Vector3f newUp = vars.vect2; in lookAt() local
821 newUp.set(worldUpVector).normalizeLocal(); in lookAt()
822 if (newUp.equals(Vector3f.ZERO)) { in lookAt()
823 newUp.set(Vector3f.UNIT_Y); in lookAt()
826 newLeft.set(newUp).crossLocal(newDirection).normalizeLocal(); in lookAt()
835 newUp.set(newDirection).crossLocal(newLeft).normalizeLocal(); in lookAt()
837 this.rotation.fromAxes(newLeft, newUp, newDirection); in lookAt()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DSpatial.java365 public void rotateUpTo(Vector3f newUp) { in rotateUpTo() argument
377 float angle = upY.angleBetween(newUp); in rotateUpTo()
380 Vector3f rotAxis = upY.crossLocal(newUp).normalizeLocal(); in rotateUpTo()