Transform

Overview

Transform is a class in Aspose.3D FOSS for Java. Inherits from: A3DObject.

The Transform class lets developers define translation, scaling, and rotation using vectors, quaternions, or Euler angles.

This class provides 46 methods for working with Transform objects in Java programs. Available methods include: Transform, findProperty, getEulerAngles, getGeometricRotation, getGeometricScaling, getGeometricTranslation, getName, getPostRotation, getPreRotation, getProperties, getProperty, getRotation, and 25 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: eulerAngles, geometricRotation, geometricScaling, geometricTranslation, name, postRotation, and 10 more.

Properties

NameTypeAccessDescription
translationVector3ReadGets the translation.
scalingVector3ReadGets the scaling.
eulerAnglesVector3ReadGets the euler angles.
rotationQuaternionReadGets the rotation.
preRotationVector3ReadGets the pre rotation.
postRotationVector3ReadGets the post rotation.
geometricTranslationVector3ReadGets the geometric translation.
geometricScalingVector3ReadGets the geometric scaling.
geometricRotationVector3ReadGets the geometric rotation.
scalingOffsetVector3ReadGets the scaling offset.
scalingPivotVector3ReadGets the scaling pivot.
rotationOffsetVector3ReadGets the rotation offset.
rotationPivotVector3ReadGets the rotation pivot.
transformMatrixMatrix4ReadGets the transform matrix.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Transform()Calls Transform on this Transform instance.
Transform(name: String)Calls Transform(name) on this Transform instance.
getTranslation()Vector3Returns the translation.
setTranslation(value: Vector3)Sets the translation value.
setTranslation(x: double, y: double, z: double)TransformSets the translation value.
getScaling()Vector3Returns the scaling.
setScaling(value: Vector3)Sets the scaling value.
setScale(x: double, y: double, z: double)TransformSets the scale value.
getEulerAngles()Vector3Returns the euler angles.
setEulerAngles(value: Vector3)Sets the euler angles value.
setEulerAngles(x: double, y: double, z: double)TransformSets the euler angles value.
getRotation()QuaternionReturns the rotation.
setRotation(value: Quaternion)Sets the rotation value.
setRotation(x: double, y: double, z: double, w: double)TransformSets the rotation value.
setPreRotation(x: double, y: double, z: double)TransformSets the pre rotation value.
getPreRotation()Vector3Returns the pre rotation.
setPreRotation(value: Vector3)Sets the pre rotation value.
setPostRotation(x: double, y: double, z: double)TransformSets the post rotation value.
getPostRotation()Vector3Returns the post rotation.
setPostRotation(value: Vector3)Sets the post rotation value.
getGeometricTranslation()Vector3Returns the geometric translation.
setGeometricTranslation(value: Vector3)Sets the geometric translation value.
setGeometricTranslation(x: double, y: double, z: double)TransformSets the geometric translation value.
getGeometricScaling()Vector3Returns the geometric scaling.
setGeometricScaling(value: Vector3)Sets the geometric scaling value.
setGeometricScaling(x: double, y: double, z: double)TransformSets the geometric scaling value.
getGeometricRotation()Vector3Returns the geometric rotation.
setGeometricRotation(value: Vector3)Sets the geometric rotation value.
setGeometricRotation(x: double, y: double, z: double)TransformSets the geometric rotation value.
getScalingOffset()Vector3Returns the scaling offset.
setScalingOffset(value: Vector3)Sets the scaling offset value.
getScalingPivot()Vector3Returns the scaling pivot.
setScalingPivot(value: Vector3)Sets the scaling pivot value.
getRotationOffset()Vector3Returns the rotation offset.
setRotationOffset(value: Vector3)Sets the rotation offset value.
getRotationPivot()Vector3Returns the rotation pivot.
setRotationPivot(value: Vector3)Sets the rotation pivot value.
getTransformMatrix()Matrix4Returns the transform matrix.
setTransformMatrix(value: Matrix4)Sets the transform matrix value.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Transform instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Transform instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Transform instance.

See Also

 English