Home
last modified time | relevance | path

Searched refs:newDirection (Results 1 – 3 of 3) sorted by relevance

/external/eigen/demos/opengl/
Dcamera.cpp102 void Camera::setDirection(const Vector3f& newDirection) in setDirection() argument
109 camAxes.col(2) = (-newDirection).normalized(); in setDirection()
122 Vector3f newDirection = mTarget - position(); in setTarget() local
123 setDirection(newDirection.normalized()); in setTarget()
Dcamera.h69 void setDirection(const Eigen::Vector3f& newDirection);
/external/jmonkeyengine/engine/src/core/com/jme3/renderer/
DCamera.java815 Vector3f newDirection = vars.vect1; in lookAt() local
819 newDirection.set(pos).subtractLocal(location).normalizeLocal(); in lookAt()
826 newLeft.set(newUp).crossLocal(newDirection).normalizeLocal(); in lookAt()
828 if (newDirection.x != 0) { in lookAt()
829 newLeft.set(newDirection.y, -newDirection.x, 0f); in lookAt()
831 newLeft.set(0f, newDirection.z, -newDirection.y); in lookAt()
835 newUp.set(newDirection).crossLocal(newLeft).normalizeLocal(); in lookAt()
837 this.rotation.fromAxes(newLeft, newUp, newDirection); in lookAt()