Class Transform

java.lang.Object
com.raylib.Transform

public class Transform extends Object
Transform, vertex transformation data
  • Field Details

    • memorySegment

      public final MemorySegment memorySegment
      The native FFI MemorySegment that holds the data this object wraps.
  • Constructor Details

    • Transform

      public Transform()
      Construct with auto memory allocator and fields initialized to zero.
    • Transform

      public Transform(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • Transform

      public Transform(MemorySegment memorySegment)
      Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    • Transform

      public Transform(Vector3 translation, Vector4 rotation, Vector3 scale)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      translation - Translation
      rotation - Rotation
      scale - Scale
    • Transform

      public Transform(SegmentAllocator arena, Vector3 translation, Vector4 rotation, Vector3 scale)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      translation - Translation
      rotation - Rotation
      scale - Scale
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public Transform getArrayElement(int index)
    • allocateArray

      public static Transform allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of Transform
    • allocateArray

      public static Transform allocateArray(long elementCount)
      Allocate an array of Transform
    • getTranslation

      public Vector3 getTranslation()
      Translation
    • setTranslation

      public void setTranslation(Vector3 value)
      Translation
    • translation

      public Vector3 translation()
      Translation
    • translation

      public Transform translation(Vector3 value)
      Translation
    • getRotation

      public Vector4 getRotation()
      Rotation
    • setRotation

      public void setRotation(Vector4 value)
      Rotation
    • rotation

      public Vector4 rotation()
      Rotation
    • rotation

      public Transform rotation(Vector4 value)
      Rotation
    • getScale

      public Vector3 getScale()
      Scale
    • setScale

      public void setScale(Vector3 value)
      Scale
    • scale

      public Vector3 scale()
      Scale
    • scale

      public Transform scale(Vector3 value)
      Scale