public class Scale extends Transformation
| Modifier and Type | Field and Description |
|---|---|
Vector3 |
factor |
operationIndex| Constructor and Description |
|---|
Scale(double factor) |
Scale(double x,
double y,
double z) |
Scale(Vector3 factor) |
| 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)
|
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() |
at, load, operate, operationID, with$plus$pluspublic Vector3 factor
public Scale(Vector3 factor)
public Scale(double factor)
public Scale(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 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