Package org.lwjgl.assimp
Class AIVector2D
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIVector2D
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class AIVector2D extends org.lwjgl.system.Struct
Layout
struct aiVector2D { float x; float y; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIVector2D.Buffer
An array ofAIVector2D
structs.
-
Constructor Summary
Constructors Constructor Description AIVector2D(java.nio.ByteBuffer container)
Creates aAIVector2D
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 AIVector2D
create(long address)
Returns a newAIVector2D
instance for the specified memory address.static AIVector2D.Buffer
create(long address, int capacity)
Create aAIVector2D.Buffer
instance at the specified memory.static AIVector2D
createSafe(long address)
static AIVector2D.Buffer
createSafe(long address, int capacity)
static float
nx(long struct)
Unsafe version ofx()
.static float
ny(long struct)
Unsafe version ofy()
.int
sizeof()
float
x()
Returns the value of thex
field.float
y()
Returns the value of they
field.
-
-
-
Constructor Detail
-
AIVector2D
public AIVector2D(java.nio.ByteBuffer container)
Creates aAIVector2D
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
-
x
public float x()
Returns the value of thex
field.
-
y
public float y()
Returns the value of they
field.
-
create
public static AIVector2D create(long address)
Returns a newAIVector2D
instance for the specified memory address.
-
createSafe
@Nullable public static AIVector2D createSafe(long address)
-
create
public static AIVector2D.Buffer create(long address, int capacity)
Create aAIVector2D.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIVector2D.Buffer createSafe(long address, int capacity)
-
nx
public static float nx(long struct)
Unsafe version ofx()
.
-
ny
public static float ny(long struct)
Unsafe version ofy()
.
-
-