public class Viewer extends java.lang.Object implements IMovable
| Constructor and Description |
|---|
Viewer(IBoundable boundable) |
Viewer(IBoundable boundable,
ITransformable transformable) |
| Modifier and Type | Method and Description |
|---|---|
Mat4x4 |
getLookAt(Mat4x4 dst)
| -left.x -left.y -left.z -( left.dot.position) |
| up.x up.y up.z ( up.dot.position) |
| -forward.x -forward.y -forward.z -(forward.dot.position) |
| 0 0 0 1 |
|
Vec3 |
getSpeed(Vec3 dst) |
Transform |
getTransform(Transform dst) |
IVolume<?> |
getVolume(int bvOptions) |
void |
setLookAt(Mat4x4 src) |
void |
setSpeed(Vec3 speed)
Set the speed magnitude and direction
|
void |
setTransform(Transform src) |
void |
transform(Transform t) |
public Viewer(IBoundable boundable)
public Viewer(IBoundable boundable, ITransformable transformable)
public IVolume<?> getVolume(int bvOptions)
getVolume in interface IBoundablebvOptions - bounding volume options.BoundingBox or BoundingSphere depending on options.VolumeOptions,
Box,
Sphere,
Cylinder,
Capsulepublic final Transform getTransform(Transform dst)
getTransform in interface ITransformabledst - storage of the Transform value (or the identity if the value is null)public final void setTransform(Transform src)
setTransform in interface ITransformablepublic final void transform(Transform t)
transform in interface ITransformablepublic final Mat4x4 getLookAt(Mat4x4 dst)
ICamera| -left.x -left.y -left.z -( left.dot.position) | | up.x up.y up.z ( up.dot.position) | | -forward.x -forward.y -forward.z -(forward.dot.position) | | 0 0 0 1 |
public final void setLookAt(Mat4x4 src)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com