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.NativeResourceLayout
struct IntersectionMaskCircle_t { float m_flCenterX; float m_flCenterY; float m_flRadius; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntersectionMaskCircle.BufferAn array ofIntersectionMaskCirclestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_FLCENTERX
M_FLCENTERY
M_FLRADIUSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description IntersectionMaskCircle(java.nio.ByteBuffer container)Creates aIntersectionMaskCircleinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntersectionMaskCirclecalloc()Returns a newIntersectionMaskCircleinstance allocated withmemCalloc.static IntersectionMaskCircle.Buffercalloc(int capacity)Returns a newIntersectionMaskCircle.Bufferinstance allocated withmemCalloc.static IntersectionMaskCirclecallocStack()Returns a newIntersectionMaskCircleinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static IntersectionMaskCircle.BuffercallocStack(int capacity)Returns a newIntersectionMaskCircle.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static IntersectionMaskCircle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskCirclecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskCirclecreate()Returns a newIntersectionMaskCircleinstance allocated withBufferUtils.static IntersectionMaskCircle.Buffercreate(int capacity)Returns a newIntersectionMaskCircle.Bufferinstance allocated withBufferUtils.static IntersectionMaskCirclecreate(long address)Returns a newIntersectionMaskCircleinstance for the specified memory address.static IntersectionMaskCircle.Buffercreate(long address, int capacity)Create aIntersectionMaskCircle.Bufferinstance at the specified memory.static IntersectionMaskCirclecreateSafe(long address)static IntersectionMaskCircle.BuffercreateSafe(long address, int capacity)floatm_flCenterX()Returns the value of them_flCenterXfield.IntersectionMaskCirclem_flCenterX(float value)Sets the specified value to them_flCenterXfield.floatm_flCenterY()Returns the value of them_flCenterYfield.IntersectionMaskCirclem_flCenterY(float value)Sets the specified value to them_flCenterYfield.floatm_flRadius()Returns the value of them_flRadiusfield.IntersectionMaskCirclem_flRadius(float value)Sets the specified value to them_flRadiusfield.static IntersectionMaskCirclemalloc()Returns a newIntersectionMaskCircleinstance allocated withmemAlloc.static IntersectionMaskCircle.Buffermalloc(int capacity)Returns a newIntersectionMaskCircle.Bufferinstance allocated withmemAlloc.static IntersectionMaskCirclemallocStack()Returns a newIntersectionMaskCircleinstance allocated on the thread-localMemoryStack.static IntersectionMaskCircle.BuffermallocStack(int capacity)Returns a newIntersectionMaskCircle.Bufferinstance allocated on the thread-localMemoryStack.static IntersectionMaskCircle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircle.Bufferinstance allocated on the specifiedMemoryStack.static IntersectionMaskCirclemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStack.static floatnm_flCenterX(long struct)Unsafe version ofm_flCenterX().static voidnm_flCenterX(long struct, float value)Unsafe version ofm_flCenterX.static floatnm_flCenterY(long struct)Unsafe version ofm_flCenterY().static voidnm_flCenterY(long struct, float value)Unsafe version ofm_flCenterY.static floatnm_flRadius(long struct)Unsafe version ofm_flRadius().static voidnm_flRadius(long struct, float value)Unsafe version ofm_flRadius.IntersectionMaskCircleset(float m_flCenterX, float m_flCenterY, float m_flRadius)Initializes this struct with the specified values.IntersectionMaskCircleset(IntersectionMaskCircle src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
IntersectionMaskCircle
public IntersectionMaskCircle(java.nio.ByteBuffer container)
Creates aIntersectionMaskCircleinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
m_flCenterX
public float m_flCenterX()
Returns the value of them_flCenterXfield.
-
m_flCenterY
public float m_flCenterY()
Returns the value of them_flCenterYfield.
-
m_flRadius
public float m_flRadius()
Returns the value of them_flRadiusfield.
-
m_flCenterX
public IntersectionMaskCircle m_flCenterX(float value)
Sets the specified value to them_flCenterXfield.
-
m_flCenterY
public IntersectionMaskCircle m_flCenterY(float value)
Sets the specified value to them_flCenterYfield.
-
m_flRadius
public IntersectionMaskCircle m_flRadius(float value)
Sets the specified value to them_flRadiusfield.
-
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 newIntersectionMaskCircleinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IntersectionMaskCircle calloc()
Returns a newIntersectionMaskCircleinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IntersectionMaskCircle create()
Returns a newIntersectionMaskCircleinstance allocated withBufferUtils.
-
create
public static IntersectionMaskCircle create(long address)
Returns a newIntersectionMaskCircleinstance for the specified memory address.
-
createSafe
@Nullable public static IntersectionMaskCircle createSafe(long address)
-
malloc
public static IntersectionMaskCircle.Buffer malloc(int capacity)
Returns a newIntersectionMaskCircle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IntersectionMaskCircle.Buffer calloc(int capacity)
Returns a newIntersectionMaskCircle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IntersectionMaskCircle.Buffer create(int capacity)
Returns a newIntersectionMaskCircle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IntersectionMaskCircle.Buffer create(long address, int capacity)
Create aIntersectionMaskCircle.Bufferinstance 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 newIntersectionMaskCircleinstance allocated on the thread-localMemoryStack.
-
callocStack
public static IntersectionMaskCircle callocStack()
Returns a newIntersectionMaskCircleinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static IntersectionMaskCircle mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static IntersectionMaskCircle callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static IntersectionMaskCircle.Buffer callocStack(int capacity)
Returns a newIntersectionMaskCircle.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-