| Package | Description |
|---|---|
| com.bonzaiengine.camera | |
| com.bonzaiengine.io | |
| com.bonzaiengine.material.graph.nodes | |
| com.bonzaiengine.math | |
| com.bonzaiengine.memory |
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
PerspectiveProjection.getFarPlaneSize()
Calculate the back frustum face dimension, according to those formulas:
height = 2 * zFar * tan(fovY/2)width = height * aspectRatio |
Vec2 |
PerspectiveProjection.getNearPlaneSize()
Calculate the front frustum face dimension, according to those formulas:
height = 2 * zNear * tan(fovY/2)width = height * aspectRatio |
Vec2 |
PerspectiveProjection.getPlaneSize(float z)
Calculate the face (laying on the xy plane) dimension, according to those formulas:
height = 2 * z * tan(fovY/2)width = height * aspectRatio |
Vec2 |
PerspectiveProjection.projectionPoint(Vec2 dst,
float zFaceDist,
Vec2 point,
float zProjectionFaceDist) |
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
PerspectiveProjection.projectionPoint(Vec2 dst,
float zFaceDist,
Vec2 point,
float zProjectionFaceDist) |
| Modifier and Type | Method and Description |
|---|---|
static Vec2 |
ParserUtils.parseVec2(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
ParserUtils.writeVec2(Vec2 vector) |
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
ConstantVec2.getConstant() |
| Modifier and Type | Method and Description |
|---|---|
void |
Panner.getSpeed(Vec2 dst) |
void |
ConstantVec2.setConstant(Vec2 src) |
void |
Panner.setSpeed(Vec2 src) |
| Constructor and Description |
|---|
ConstantVec2(Vec2 value) |
| Modifier and Type | Field and Description |
|---|---|
static Vec2 |
Vec2.one
Don't modify the value of this vector.
|
static Vec2 |
Vec2.zero
Don't modify the value of this vector.
|
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
Vec2.add(float x,
float y) |
Vec2 |
Vec2.add(Vec2 vec) |
Vec2 |
Vec2.add(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.addScale(Vec2 vec1,
Vec2 vec2,
float scale) |
Vec2 |
Vec2.addScale(Vec2 vec1,
Vec2 vec2,
Vec2 scale) |
Vec2 |
Vec2.clone() |
Vec2 |
Vec2.divide(Vec2 vec,
float f) |
Vec2 |
Vec2.divide(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2Array.get(int index,
Vec2 dst) |
Vec2 |
Vec2.interpolate(Vec2 current,
Vec2 next,
float t) |
Vec2 |
Vec2.interpolateNoCheck(Vec2 current,
Vec2 next,
float t) |
Vec2 |
Vec2.invert(Vec2 vec) |
Vec2 |
Vec2.magnitude(float length) |
Vec2 |
Vec2.max(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.min(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.multiply(float f) |
Vec2 |
Vec2.multiply(Vec2 vec) |
Vec2 |
Vec2.multiply(Vec2 vec,
float f) |
Vec2 |
Vec2.multiply(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.set(float x,
float y) |
Vec2 |
Vec2.set(Vec2 src)
Copy
src in this vector. |
Vec2 |
Vec2.setUnit() |
Vec2 |
Vec2.setX(float x) |
Vec2 |
Vec2.setY(float y) |
Vec2 |
Vec2.setZero() |
Vec2 |
Vec2.subtract(Vec2 vec) |
Vec2 |
Vec2.subtract(Vec2 vec1,
Vec2 vec2) |
| Modifier and Type | Method and Description |
|---|---|
void |
Vec2Array.add(int index,
Vec2 src) |
Vec2 |
Vec2.add(Vec2 vec) |
Vec2 |
Vec2.add(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.addScale(Vec2 vec1,
Vec2 vec2,
float scale) |
Vec2 |
Vec2.addScale(Vec2 vec1,
Vec2 vec2,
Vec2 scale) |
float |
Vec2.distance(Vec2 vec) |
float |
Vec2.distanceSqr(Vec2 vec) |
Vec2 |
Vec2.divide(Vec2 vec,
float f) |
Vec2 |
Vec2.divide(Vec2 vec1,
Vec2 vec2) |
float |
Vec2.dot(Vec2 vec) |
Vec2 |
Vec2Array.get(int index,
Vec2 dst) |
Vec2 |
Vec2.interpolate(Vec2 current,
Vec2 next,
float t) |
void |
Vec2.interpolateNoCheck(Vec2 next,
float t,
float[] dest,
int destIndex) |
Vec2 |
Vec2.interpolateNoCheck(Vec2 current,
Vec2 next,
float t) |
void |
Vec2.interpolateScaleAddNoCheck(Vec2 next,
float t,
float scaleX,
float scaleY,
float addX,
float addY,
float[] dest,
int destIndex) |
Vec2 |
Vec2.invert(Vec2 vec) |
Vec2 |
Vec2.max(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.min(Vec2 vec1,
Vec2 vec2) |
Vec2 |
Vec2.multiply(Vec2 vec) |
Vec2 |
Vec2.multiply(Vec2 vec,
float f) |
Vec2 |
Vec2.multiply(Vec2 vec1,
Vec2 vec2) |
void |
Vec2Array.set(int index,
Vec2 src) |
Vec2 |
Vec2.set(Vec2 src)
Copy
src in this vector. |
Vec2 |
Vec2.subtract(Vec2 vec) |
Vec2 |
Vec2.subtract(Vec2 vec1,
Vec2 vec2) |
| Modifier and Type | Method and Description |
|---|---|
void |
Vec2Array.setElements(java.lang.Iterable<Vec2> iterable) |
| Modifier and Type | Method and Description |
|---|---|
static Vec2 |
MemoryAllocator.allocVec2()
Reuse or alloc a
Vec2 from garbage pool |
| Modifier and Type | Method and Description |
|---|---|
static void |
MemoryAllocator.free(Vec2 v)
Free a
Vec2 to garbage pool |
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