/** * Sets the new direction this camera is facing. This does not change left or up axes, so make sure those vectors * are properly set as well. * * @param direction * the new direction this camera is facing. */ public void setDirection(final ReadOnlyVector3 direction) { _direction.set(direction); onFrameChange(); }
/** * Sets the new up axis of this camera. This does not change direction or left axis, so make sure those vectors are * properly set as well. * * @param up * the new up axis of this camera. */ public void setUp(final ReadOnlyVector3 up) { _up.set(up); onFrameChange(); }
/** * @param location * the new location or position of the camera. */ public void setLocation(final ReadOnlyVector3 location) { _location.set(location); onFrameChange(); }
/** * Sets the new left axis of this camera. This does not change direction or up axis, so make sure those vectors are * properly set as well. * * @param left * the new left axis of this camera. */ public void setLeft(final ReadOnlyVector3 left) { _left.set(left); onFrameChange(); }
/** * @param location * the new location or position of the camera. */ public void setLocation(final double x, final double y, final double z) { _location.set(x, y, z); onFrameChange(); }
/** * Sets the new left axis of this camera. This does not change direction or up axis, so make sure those vectors are * properly set as well. * * @param left * the new left axis of this camera. */ public void setLeft(final ReadOnlyVector3 left) { _left.set(left); onFrameChange(); }
/** * Sets the new up axis of this camera. This does not change direction or left axis, so make sure those vectors are * properly set as well. * * @param up * the new up axis of this camera. */ public void setUp(final ReadOnlyVector3 up) { _up.set(up); onFrameChange(); }
/** * @param location * the new location or position of the camera. */ public void setLocation(final ReadOnlyVector3 location) { _location.set(location); onFrameChange(); }
/** * @param location * the new location or position of the camera. */ public void setLocation(final double x, final double y, final double z) { _location.set(x, y, z); onFrameChange(); }
/** * Sets the new direction this camera is facing. This does not change left or up axes, so make sure those vectors * are properly set as well. * * @param direction * the new direction this camera is facing. */ public void setDirection(final ReadOnlyVector3 direction) { _direction.set(direction); onFrameChange(); }
/** * Forces all aspect of the camera to be updated from internal values, and sets all dirty flags to true so that the * next apply() call will fully set this camera to the render context. */ public void update() { _depthRangeDirty = true; onFrustumChange(); onViewPortChange(); onFrameChange(); }
/** * Forces all aspect of the camera to be updated from internal values, and sets all dirty flags to true so that the * next apply() call will fully set this camera to the render context. */ public void update() { _depthRangeDirty = true; onFrustumChange(); onViewPortChange(); onFrameChange(); }
/** * Ensure our up, left and direction are unit-length vectors. */ public void normalize() { _left.normalizeLocal(); _up.normalizeLocal(); _direction.normalizeLocal(); onFrameChange(); }
/** * Sets our left, up and direction values from the given rotation matrix. * * @param axes * the matrix that defines the orientation of the camera. */ public void setAxes(final ReadOnlyMatrix3 axes) { axes.getColumn(0, _left); axes.getColumn(1, _up); axes.getColumn(2, _direction); onFrameChange(); }
/** * Sets our left, up and direction values from the given rotation matrix. * * @param axes * the matrix that defines the orientation of the camera. */ public void setAxes(final ReadOnlyMatrix3 axes) { axes.getColumn(0, _left); axes.getColumn(1, _up); axes.getColumn(2, _direction); onFrameChange(); }
/** * Ensure our up, left and direction are unit-length vectors. */ public void normalize() { _left.normalizeLocal(); _up.normalizeLocal(); _direction.normalizeLocal(); onFrameChange(); }
/** * @param left * the new left axis of the camera. * @param up * the new up axis of the camera. * @param direction * the new direction the camera is facing. */ public void setAxes(final ReadOnlyVector3 left, final ReadOnlyVector3 up, final ReadOnlyVector3 direction) { _left.set(left); _up.set(up); _direction.set(direction); onFrameChange(); }
/** * @param left * the new left axis of the camera. * @param up * the new up axis of the camera. * @param direction * the new direction the camera is facing. */ public void setAxes(final ReadOnlyVector3 left, final ReadOnlyVector3 up, final ReadOnlyVector3 direction) { _left.set(left); _up.set(up); _direction.set(direction); onFrameChange(); }
/** * Sets the axes and location of the camera using those of a given source camera * * @param source * a source camera. */ public void setFrame(final Camera source) { _left.set(source.getLeft()); _up.set(source.getUp()); _direction.set(source.getDirection()); _location.set(source.getLocation()); onFrameChange(); }
/** * Sets the axes and location of the camera using those of a given source camera * * @param source * a source camera. */ public void setFrame(final Camera source) { _left.set(source.getLeft()); _up.set(source.getUp()); _direction.set(source.getDirection()); _location.set(source.getLocation()); onFrameChange(); }