public final class TransformUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.math3.linear.RealMatrix |
scaleMatrix(double x,
double y,
double z)
Creates scale matrix.
|
static org.apache.commons.math3.linear.RealMatrix |
scaleMatrix(org.apache.commons.math3.geometry.euclidean.threed.Vector3D scaleVector)
Creates scale matrix.
|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
transform(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vector,
org.apache.commons.math3.linear.RealMatrix m)
Transform vector by this matrix.
|
static org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
transformDirectionless(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vector,
org.apache.commons.math3.linear.RealMatrix m)
Transform vector by this matrix.
|
static org.apache.commons.math3.linear.RealMatrix |
translationMatrix(double x,
double y,
double z)
Creates translation matrix.
|
static org.apache.commons.math3.linear.RealMatrix |
translationMatrix(org.apache.commons.math3.geometry.euclidean.threed.Vector3D translationVector)
Creates translation matrix.
|
public static org.apache.commons.math3.linear.RealMatrix translationMatrix(double x,
double y,
double z)
x - translation.y - translation.z - translation.public static org.apache.commons.math3.linear.RealMatrix translationMatrix(org.apache.commons.math3.geometry.euclidean.threed.Vector3D translationVector)
translationVector - which components are translation parameters.public static org.apache.commons.math3.linear.RealMatrix scaleMatrix(double x,
double y,
double z)
x - scale.y - scale.z - scale.public static org.apache.commons.math3.linear.RealMatrix scaleMatrix(org.apache.commons.math3.geometry.euclidean.threed.Vector3D scaleVector)
scaleVector - which components are scale parameters.public static org.apache.commons.math3.geometry.euclidean.threed.Vector3D transform(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vector,
org.apache.commons.math3.linear.RealMatrix m)
vector - to be transformed.m - The 4x4 matrix to transform the vector bypublic static org.apache.commons.math3.geometry.euclidean.threed.Vector3D transformDirectionless(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vector,
org.apache.commons.math3.linear.RealMatrix m)
vector - to be transformed.m - The 4x4 matrix to transform the vector by