@EqualityStructural public final class KTransformOST extends Object implements KTransformType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
com.io7m.jtensors.QuaternionI4F |
getOrientation() |
com.io7m.jtensors.VectorI3F |
getScale() |
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> |
getTranslation() |
int |
hashCode() |
static KTransformType |
newTransform(com.io7m.jtensors.QuaternionI4F orientation,
com.io7m.jtensors.VectorI3F scale,
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> translation)
Construct a new transform.
|
<A,E extends Throwable,V extends KTransformVisitorType<A,E>> |
transformAccept(V v)
Be visited by the given generic visitor.
|
void |
transformMakeMatrix4x4F(KTransformContext context,
com.io7m.jtensors.parameterized.PMatrixM4x4F<RSpaceObjectType,RSpaceWorldType> m)
Produce a 4x4 matrix for the current transformation, writing the
resulting matrix to
m . |
public static KTransformType newTransform(com.io7m.jtensors.QuaternionI4F orientation, com.io7m.jtensors.VectorI3F scale, com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> translation)
orientation
- The orientationscale
- The scaletranslation
- The world-space translationpublic com.io7m.jtensors.QuaternionI4F getOrientation()
public com.io7m.jtensors.VectorI3F getScale()
public com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> getTranslation()
public <A,E extends Throwable,V extends KTransformVisitorType<A,E>> A transformAccept(V v) throws E extends Throwable
KTransformType
transformAccept
in interface KTransformType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorV
- A specific visitor subtypev
- The visitorE
- Iff the visitor raises E
E extends Throwable
public void transformMakeMatrix4x4F(KTransformContext context, com.io7m.jtensors.parameterized.PMatrixM4x4F<RSpaceObjectType,RSpaceWorldType> m)
KTransformType
m
.transformMakeMatrix4x4F
in interface KTransformType
context
- The current transform contextm
- The matrix to which values will be writtenCopyright © 2015 <code@io7m.com> http://io7m.com