Package org.lwjgl.openvr
Class IntersectionMaskCircle
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class IntersectionMaskCircle
extends Struct<IntersectionMaskCircle>
implements NativeResource
Layout
struct IntersectionMaskCircle_t {
float m_flCenterX;
float m_flCenterY;
float m_flRadius;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIntersectionMaskCircle
(ByteBuffer container) Creates aIntersectionMaskCircle
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionMaskCircle
calloc()
Returns a newIntersectionMaskCircle
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IntersectionMaskCircle
calloc
(MemoryStack stack) Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IntersectionMaskCircle
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static IntersectionMaskCircle
callocStack
(MemoryStack stack) Deprecated.static IntersectionMaskCircle
create()
Returns a newIntersectionMaskCircle
instance allocated withBufferUtils
.create
(int capacity) Returns a newIntersectionMaskCircle.Buffer
instance allocated withBufferUtils
.static IntersectionMaskCircle
create
(long address) Returns a newIntersectionMaskCircle
instance for the specified memory address.create
(long address, int capacity) Create aIntersectionMaskCircle.Buffer
instance at the specified memory.static IntersectionMaskCircle
createSafe
(long address) createSafe
(long address, int capacity) float
m_flCenterX
(float value) Sets the specified value to them_flCenterX
field.float
m_flCenterY
(float value) Sets the specified value to them_flCenterY
field.float
m_flRadius
(float value) Sets the specified value to them_flRadius
field.static IntersectionMaskCircle
malloc()
Returns a newIntersectionMaskCircle
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
.static IntersectionMaskCircle
malloc
(MemoryStack stack) Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
.static IntersectionMaskCircle
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static IntersectionMaskCircle
mallocStack
(MemoryStack stack) Deprecated.static float
nm_flCenterX
(long struct) Unsafe version ofm_flCenterX()
.static void
nm_flCenterX
(long struct, float value) Unsafe version ofm_flCenterX
.static float
nm_flCenterY
(long struct) Unsafe version ofm_flCenterY()
.static void
nm_flCenterY
(long struct, float value) Unsafe version ofm_flCenterY
.static float
nm_flRadius
(long struct) Unsafe version ofm_flRadius()
.static void
nm_flRadius
(long struct, float value) Unsafe version ofm_flRadius
.set
(float m_flCenterX, float m_flCenterY, float m_flRadius) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
M_FLCENTERX
public static final int M_FLCENTERXThe struct member offsets. -
M_FLCENTERY
public static final int M_FLCENTERYThe struct member offsets. -
M_FLRADIUS
public static final int M_FLRADIUSThe struct member offsets.
-
-
Constructor Details
-
IntersectionMaskCircle
Creates aIntersectionMaskCircle
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<IntersectionMaskCircle>
-
m_flCenterX
public float m_flCenterX()- Returns:
- the value of the
m_flCenterX
field.
-
m_flCenterY
public float m_flCenterY()- Returns:
- the value of the
m_flCenterY
field.
-
m_flRadius
public float m_flRadius()- Returns:
- the value of the
m_flRadius
field.
-
m_flCenterX
Sets the specified value to them_flCenterX
field. -
m_flCenterY
Sets the specified value to them_flCenterY
field. -
m_flRadius
Sets the specified value to them_flRadius
field. -
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 newIntersectionMaskCircle
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIntersectionMaskCircle
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIntersectionMaskCircle
instance allocated withBufferUtils
. -
create
Returns a newIntersectionMaskCircle
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIntersectionMaskCircle.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIntersectionMaskCircle.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static IntersectionMaskCircle.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static IntersectionMaskCircle.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nm_flCenterX
public static float nm_flCenterX(long struct) Unsafe version ofm_flCenterX()
. -
nm_flCenterY
public static float nm_flCenterY(long struct) Unsafe version ofm_flCenterY()
. -
nm_flRadius
public static float nm_flRadius(long struct) Unsafe version ofm_flRadius()
. -
nm_flCenterX
public static void nm_flCenterX(long struct, float value) Unsafe version ofm_flCenterX
. -
nm_flCenterY
public static void nm_flCenterY(long struct, float value) Unsafe version ofm_flCenterY
. -
nm_flRadius
public static void nm_flRadius(long struct, float value) Unsafe version ofm_flRadius
.
-