Class AIUVTransform

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class AIUVTransform
    extends Struct
    implements NativeResource
    Defines how an UV channel is transformed.

    This is just a helper structure for the Assimp._AI_MATKEY_UVTRANSFORM_BASE key. See its documentation for more details.

    Typically you'll want to build a matrix of this information. However, we keep separate scaling/translation/rotation values to make it easier to process and optimize UV transformations internally.

    Member documentation

    • mTranslation – Translation on the u and v axes. The default value is (0|0).
    • mScaling – Scaling on the u and v axes. The default value is (1|1).
    • mRotation – Rotation - in counter-clockwise direction. The rotation angle is specified in radians. The rotation center is 0.5f|0.5f. The default value 0.f.


     struct aiUVTransform {
         struct aiVector2D mTranslation;
         struct aiVector2D mScaling;
         float mRotation;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • AIUVTransform

        public AIUVTransform​(java.nio.ByteBuffer container)
        Creates a AIUVTransform instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.