|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.scirenderer.tranformations.TransformationFactory
public final class TransformationFactory
Method Summary | |
---|---|
static Transformation |
getAffineTransformation(Vector3d s,
Vector3d t)
Return an affine transformation aX + b |
static Transformation |
getIdentity()
Return the identity transformation. |
static Transformation |
getOrthographic(double left,
double right,
double bottom,
double top,
double near,
double far)
Return an orthographic transformation. |
static Transformation |
getPerspectiveTransformation(double near,
double far,
double fov)
Return a perspective transformation. |
static Transformation |
getPreferredAspectRatioTransformation(java.awt.Dimension dimension,
double preferredRatio)
Return the 'preferred aspect ratio transformation' |
static Transformation |
getRotationTransformation(double angle,
double x,
double y,
double z)
Return a rotation transformation. |
static Transformation |
getRotationTransformation(Rotation q)
Return a rotation transformation. |
static Transformation |
getScaleTransformation(double s)
Return a scale transformation. |
static Transformation |
getScaleTransformation(double x,
double y,
double z)
Return a scale transformation. |
static Transformation |
getTranslateTransformation(double x,
double y,
double z)
Return a translate transformation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Transformation getIdentity()
public static Transformation getTranslateTransformation(double x, double y, double z)
x
- translation in x coordinate.y
- translation in y coordinate.z
- translation in z coordinate.
public static Transformation getScaleTransformation(double x, double y, double z) throws DegenerateMatrixException
x
- scale in x.y
- scale in y.z
- scale in z.
DegenerateMatrixException
- - A DegenerateMatrixException is thrown if one of the scale factor is zero.public static Transformation getScaleTransformation(double s) throws DegenerateMatrixException
s
- scale value.
DegenerateMatrixException
- - A DegenerateMatrixException is thrown if one coordinate of the scale vector is zero.public static Transformation getRotationTransformation(double angle, double x, double y, double z) throws DegenerateMatrixException
angle
- the rotation angle in degree.x
- the x coordinate of the rotation axes.y
- the y coordinate of the rotation axes.z
- the z coordinate of the rotation axes.
DegenerateMatrixException
- - A DegenerateMatrixException is thrown if the rotation axes is zero.public static Transformation getRotationTransformation(Rotation q)
q
- the quaternion.
public static Transformation getPreferredAspectRatioTransformation(java.awt.Dimension dimension, double preferredRatio) throws DegenerateMatrixException
dimension
- the canvas dimension.preferredRatio
- the preferred aspect ratio.
DegenerateMatrixException
- - A DegenerateMatrixException is thrown if the given value are not reasonable.public static Transformation getPerspectiveTransformation(double near, double far, double fov)
near
- the distance from the viewer to the near clipping plane.far
- the distance from the viewer to the far clipping plane.fov
- the field of view angle in degree.
public static Transformation getOrthographic(double left, double right, double bottom, double top, double near, double far)
left
- the left plane distance to origin.right
- the right plane distance to origin.bottom
- the bottom plane distance to origin.top
- the top plane distance to origin.near
- the near plane distance to origin.far
- the far plane distance to origin.
public static Transformation getAffineTransformation(Vector3d s, Vector3d t) throws DegenerateMatrixException
s
- the scale parameter.t
- the translate parameter.
DegenerateMatrixException
- - A DegenerateMatrixException is thrown if one coordinate of the scale vector is zero.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |