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 Deprecated 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 IntersectionMaskCircle.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskCirclecalloc(org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IntersectionMaskCirclecallocStack()Deprecated.static IntersectionMaskCircle.BuffercallocStack(int capacity)Deprecated.static IntersectionMaskCircle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static IntersectionMaskCirclecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()IntersectionMaskCirclem_flCenterX(float value)Sets the specified value to them_flCenterXfield.floatm_flCenterY()IntersectionMaskCirclem_flCenterY(float value)Sets the specified value to them_flCenterYfield.floatm_flRadius()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 IntersectionMaskCircle.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircle.Bufferinstance allocated on the specifiedMemoryStack.static IntersectionMaskCirclemalloc(org.lwjgl.system.MemoryStack stack)Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStack.static IntersectionMaskCirclemallocStack()Deprecated.static IntersectionMaskCircle.BuffermallocStack(int capacity)Deprecated.static IntersectionMaskCircle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static IntersectionMaskCirclemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 the
m_flCenterXfield.
-
m_flCenterY
public float m_flCenterY()
- Returns:
- the value of the
m_flCenterYfield.
-
m_flRadius
public float m_flRadius()
- Returns:
- the value of the
m_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
@Deprecated public static IntersectionMaskCircle mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static IntersectionMaskCircle callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static IntersectionMaskCircle mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static IntersectionMaskCircle callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static IntersectionMaskCircle.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static IntersectionMaskCircle.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static IntersectionMaskCircle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static IntersectionMaskCircle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static IntersectionMaskCircle malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIntersectionMaskCircleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IntersectionMaskCircle calloc(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
-
malloc
public static IntersectionMaskCircle.Buffer malloc(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
-
calloc
public static IntersectionMaskCircle.Buffer calloc(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.
-
-