Class XrPosef
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
Description
A runtime must return ERROR_POSE_INVALID if the orientation norm deviates by more than 1% from unit length.
See Also
XrActionSpaceCreateInfo, XrBodyJointLocationFB, XrBodyJointLocationHTC, XrBodySkeletonJointFB, XrBodySkeletonJointHTC, XrBoxf, XrCompositionLayerCylinderKHR, XrCompositionLayerEquirect2KHR, XrCompositionLayerEquirectKHR, XrCompositionLayerProjectionView, XrCompositionLayerQuad, XrCompositionLayerSpaceWarpInfoFB, XrControllerModelNodeStateMSFT, XrCoordinateSpaceCreateInfoML, XrEnvironmentDepthImageViewMETA, XrEventDataReferenceSpaceChangePending, XrExternalCameraExtrinsicsOCULUS, XrEyeGazeFB, XrFrustumf, XrGeometryInstanceCreateInfoFB, XrGeometryInstanceTransformFB, XrHandJointLocationEXT, XrHandMeshSpaceCreateInfoMSFT, XrHandTrackingAimStateFB, XrHandTrackingMeshFB, XrMarkerSpaceCreateInfoML, XrMarkerSpaceCreateInfoVARJO, XrPassthroughMeshTransformInfoHTC, XrPlaneDetectorBeginInfoEXT, XrPlaneDetectorLocationEXT, XrQuaternionf, XrReferenceSpaceCreateInfo, XrSceneComponentLocationMSFT, XrSceneFrustumBoundMSFT, XrSceneOrientedBoxBoundMSFT, XrSpaceLocation, XrSpaceLocationData, XrSpatialAnchorCreateInfoFB, XrSpatialAnchorCreateInfoHTC, XrSpatialAnchorCreateInfoMSFT, XrSpatialAnchorSpaceCreateInfoMSFT, XrSpatialAnchorsCreateInfoFromPoseML, XrSpatialGraphNodeBindingPropertiesMSFT, XrSpatialGraphNodeSpaceCreateInfoMSFT, XrSpatialGraphStaticNodeBindingCreateInfoMSFT, XrSpheref, XrVector2f, XrVector3f, XrVector4f, XrView, XrVirtualKeyboardInputInfoMETA, XrVirtualKeyboardLocationInfoMETA, XrVirtualKeyboardSpaceCreateInfoMETA, XrWorldMeshBlockStateML, XrWorldMeshStateRequestInfoML, SendVirtualKeyboardInputMETA, SetInputDeviceLocationEXT
Layout
struct XrPosef {
XrQuaternionf orientation();
XrVector3f position;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrPosef(ByteBuffer container) Creates aXrPosefinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrPosefcalloc()Returns a newXrPosefinstance allocated withmemCalloc.static XrPosef.Buffercalloc(int capacity) Returns a newXrPosef.Bufferinstance allocated withmemCalloc.static XrPosef.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPosefcalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrPosefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPosefcreate()Returns a newXrPosefinstance allocated withBufferUtils.static XrPosef.Buffercreate(int capacity) Returns a newXrPosef.Bufferinstance allocated withBufferUtils.static XrPosefcreate(long address) Returns a newXrPosefinstance for the specified memory address.static XrPosef.Buffercreate(long address, int capacity) Create aXrPosef.Bufferinstance at the specified memory.static @Nullable XrPosefcreateSafe(long address) static @Nullable XrPosef.BuffercreateSafe(long address, int capacity) static XrPosefmalloc()Returns a newXrPosefinstance allocated withmemAlloc.static XrPosef.Buffermalloc(int capacity) Returns a newXrPosef.Bufferinstance allocated withmemAlloc.static XrPosef.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStack.static XrPosefmalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrPosefinstance allocated on the specifiedMemoryStack.static XrQuaternionfnorientation(long struct) Unsafe version oforientation().static voidnorientation(long struct, XrQuaternionf value) Unsafe version oforientation.static XrVector3fnposition$(long struct) Unsafe version ofposition$().static voidnposition$(long struct, XrVector3f value) Unsafe version ofposition$.anXrQuaternionfrepresenting the orientation within a space.orientation(Consumer<XrQuaternionf> consumer) Passes theorientation()field to the specifiedConsumer.orientation(XrQuaternionf value) Copies the specifiedXrQuaternionfto theorientation()field.anXrVector3frepresenting position within a space.position$(Consumer<XrVector3f> consumer) Passes theposition$()field to the specifiedConsumer.position$(XrVector3f value) Copies the specifiedXrVector3fto theposition$()field.Copies the specified struct data to this struct.set(XrQuaternionf orientation, XrVector3f position$) Initializes this struct with the specified values.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ORIENTATION
public static final int ORIENTATIONThe struct member offsets. -
POSITION
public static final int POSITIONThe struct member offsets.
-
-
Constructor Details
-
XrPosef
Creates aXrPosefinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrPosef>
-
orientation
anXrQuaternionfrepresenting the orientation within a space. -
position$
anXrVector3frepresenting position within a space. -
orientation
Copies the specifiedXrQuaternionfto theorientation()field. -
orientation
Passes theorientation()field to the specifiedConsumer. -
position$
Copies the specifiedXrVector3fto theposition$()field. -
position$
Passes theposition$()field to the specifiedConsumer. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrPosefinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrPosefinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrPosefinstance allocated withBufferUtils. -
create
Returns a newXrPosefinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrPosef.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrPosef.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrPosef.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrPosef.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrPosefinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrPosefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrPosef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
norientation
Unsafe version oforientation(). -
nposition$
Unsafe version ofposition$(). -
norientation
Unsafe version oforientation. -
nposition$
Unsafe version ofposition$.
-