Package org.lwjgl.openvr
Class IntersectionMaskCircle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.IntersectionMaskCircle
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IntersectionMaskCircle extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct IntersectionMaskCircle_t { float m_flCenterX; float m_flCenterY; float m_flRadius; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntersectionMaskCircle.Buffer
An array ofIntersectionMaskCircle
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_FLCENTERX
M_FLCENTERY
M_FLRADIUSThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description IntersectionMaskCircle(java.nio.ByteBuffer container)
Creates aIntersectionMaskCircle
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntersectionMaskCircle
calloc()
Returns a newIntersectionMaskCircle
instance allocated withmemCalloc
.static IntersectionMaskCircle.Buffer
calloc(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemCalloc
.static IntersectionMaskCircle
callocStack()
Returns a newIntersectionMaskCircle
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static IntersectionMaskCircle.Buffer
callocStack(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static IntersectionMaskCircle.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IntersectionMaskCircle
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IntersectionMaskCircle
create()
Returns a newIntersectionMaskCircle
instance allocated withBufferUtils
.static IntersectionMaskCircle.Buffer
create(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated withBufferUtils
.static IntersectionMaskCircle
create(long address)
Returns a newIntersectionMaskCircle
instance for the specified memory address.static IntersectionMaskCircle.Buffer
create(long address, int capacity)
Create aIntersectionMaskCircle.Buffer
instance at the specified memory.static IntersectionMaskCircle
createSafe(long address)
static IntersectionMaskCircle.Buffer
createSafe(long address, int capacity)
float
m_flCenterX()
Returns the value of them_flCenterX
field.IntersectionMaskCircle
m_flCenterX(float value)
Sets the specified value to them_flCenterX
field.float
m_flCenterY()
Returns the value of them_flCenterY
field.IntersectionMaskCircle
m_flCenterY(float value)
Sets the specified value to them_flCenterY
field.float
m_flRadius()
Returns the value of them_flRadius
field.IntersectionMaskCircle
m_flRadius(float value)
Sets the specified value to them_flRadius
field.static IntersectionMaskCircle
malloc()
Returns a newIntersectionMaskCircle
instance allocated withmemAlloc
.static IntersectionMaskCircle.Buffer
malloc(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemAlloc
.static IntersectionMaskCircle
mallocStack()
Returns a newIntersectionMaskCircle
instance allocated on the thread-localMemoryStack
.static IntersectionMaskCircle.Buffer
mallocStack(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the thread-localMemoryStack
.static IntersectionMaskCircle.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
.static IntersectionMaskCircle
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
.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
.IntersectionMaskCircle
set(float m_flCenterX, float m_flCenterY, float m_flRadius)
Initializes this struct with the specified values.IntersectionMaskCircle
set(IntersectionMaskCircle src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
IntersectionMaskCircle
public IntersectionMaskCircle(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
m_flCenterX
public float m_flCenterX()
Returns the value of them_flCenterX
field.
-
m_flCenterY
public float m_flCenterY()
Returns the value of them_flCenterY
field.
-
m_flRadius
public float m_flRadius()
Returns the value of them_flRadius
field.
-
m_flCenterX
public IntersectionMaskCircle m_flCenterX(float value)
Sets the specified value to them_flCenterX
field.
-
m_flCenterY
public IntersectionMaskCircle m_flCenterY(float value)
Sets the specified value to them_flCenterY
field.
-
m_flRadius
public IntersectionMaskCircle m_flRadius(float value)
Sets the specified value to them_flRadius
field.
-
set
public IntersectionMaskCircle set(float m_flCenterX, float m_flCenterY, float m_flRadius)
Initializes this struct with the specified values.
-
set
public IntersectionMaskCircle set(IntersectionMaskCircle src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IntersectionMaskCircle malloc()
Returns a newIntersectionMaskCircle
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IntersectionMaskCircle calloc()
Returns a newIntersectionMaskCircle
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IntersectionMaskCircle create()
Returns a newIntersectionMaskCircle
instance allocated withBufferUtils
.
-
create
public static IntersectionMaskCircle create(long address)
Returns a newIntersectionMaskCircle
instance for the specified memory address.
-
createSafe
@Nullable public static IntersectionMaskCircle createSafe(long address)
-
malloc
public static IntersectionMaskCircle.Buffer malloc(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IntersectionMaskCircle.Buffer calloc(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IntersectionMaskCircle.Buffer create(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IntersectionMaskCircle.Buffer create(long address, int capacity)
Create aIntersectionMaskCircle.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IntersectionMaskCircle.Buffer createSafe(long address, int capacity)
-
mallocStack
public static IntersectionMaskCircle mallocStack()
Returns a newIntersectionMaskCircle
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static IntersectionMaskCircle callocStack()
Returns a newIntersectionMaskCircle
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static IntersectionMaskCircle mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static IntersectionMaskCircle callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static IntersectionMaskCircle.Buffer mallocStack(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static IntersectionMaskCircle.Buffer callocStack(int capacity)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static IntersectionMaskCircle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static IntersectionMaskCircle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-