Package com.raylib
Class Transform
java.lang.Object
com.raylib.Transform
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The 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 Transform
allocateArray
(long elementCount) Allocate an array of Transformstatic Transform
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Transformboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) RotationgetScale()
ScaleTranslationint
hashCode()
setRotation
(Vector4 value) RotationScalesetTranslation
(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
-
getRotation
Rotation -
setRotation
-
getScale
Scale -
setScale
-