public class Translation extends Transformation
| Modifier and Type | Field and Description |
|---|---|
Vector3 |
vec |
operationIndex| Constructor and Description |
|---|
Translation(double x,
double y,
double z) |
Translation(Vector3 vec) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Matrix4 mat)
Applies this transformation to a matrix as a multiplication on the right hand side.
|
void |
apply(Vector3 vec)
Applies this transformation to vec
|
void |
applyN(Vector3 normal)
Applies this transformation to a normal (doesn't translate)
|
Transformation |
at(Vector3 point) |
void |
glApply() |
Transformation |
inverse() |
boolean |
isRedundant()
Returns true if this transformation is redundant, eg.
|
Transformation |
merge(Transformation next)
Returns a simplified transformation that performs this, followed by next.
|
java.lang.String |
toString() |
load, operate, operationID, with$plus$pluspublic Vector3 vec
public Translation(Vector3 vec)
public Translation(double x,
double y,
double z)
public void apply(Vector3 vec)
ITransformationapply in class ITransformation<Vector3,Transformation>public void applyN(Vector3 normal)
TransformationapplyN in class Transformationnormal - The normal to transformpublic void apply(Matrix4 mat)
Transformationapply in class Transformationmat - The matrix to combine this transformation withpublic Transformation at(Vector3 point)
at in class Transformationpoint - The point to apply this transformation aroundpublic void glApply()
glApply in class Transformationpublic Transformation inverse()
inverse in class ITransformation<Vector3,Transformation>public Transformation merge(Transformation next)
ITransformationmerge in class ITransformation<Vector3,Transformation>public boolean isRedundant()
ITransformationisRedundant in class ITransformation<Vector3,Transformation>public java.lang.String toString()
toString in class java.lang.Object