Class Transform
java.lang.Object
com.raylib.Transform
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.Construct with auto memory allocator and fields initialized as specifiedTransform(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectTransform(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedTransform(SegmentAllocator arena, Vector3 translation, Vector4 rotation, Vector3 scale) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic TransformallocateArray(long elementCount) Allocate an array of Transformstatic TransformallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of TransformbooleanEquality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement(int index) RotationgetScale()ScaleTranslationinthashCode()rotation()RotationRotationscale()ScaleScalevoidsetRotation(Vector4 value) RotationvoidScalevoidsetTranslation(Vector3 value) TranslationTranslationtranslation(Vector3 value) Translation
-
Field Details
-
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
Construct with your owm memory allocator and fields not initialized -
Transform
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Transform
-
Transform
Construct with your own memory allocator and fields initialized as specified- Parameters:
translation- Translationrotation- Rotationscale- Scale
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Transform -
allocateArray
Allocate an array of Transform -
getTranslation
Translation -
setTranslation
Translation -
translation
Translation -
translation
-
getRotation
Rotation -
setRotation
Rotation -
rotation
Rotation -
rotation
-
getScale
Scale -
setScale
Scale -
scale
Scale -
scale
-