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.StructLayout
struct aiVector2D { float x; float y; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIVector2D.BufferAn array ofAIVector2Dstructs.
-
Constructor Summary
Constructors Constructor Description AIVector2D(java.nio.ByteBuffer container)Creates aAIVector2Dinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AIVector2Dcreate(long address)Returns a newAIVector2Dinstance for the specified memory address.static AIVector2D.Buffercreate(long address, int capacity)Create aAIVector2D.Bufferinstance at the specified memory.static AIVector2DcreateSafe(long address)static AIVector2D.BuffercreateSafe(long address, int capacity)static floatnx(long struct)Unsafe version ofx().static floatny(long struct)Unsafe version ofy().intsizeof()floatx()Returns the value of thexfield.floaty()Returns the value of theyfield.
-
-
-
Constructor Detail
-
AIVector2D
public AIVector2D(java.nio.ByteBuffer container)
Creates aAIVector2Dinstance 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
-
x
public float x()
Returns the value of thexfield.
-
y
public float y()
Returns the value of theyfield.
-
create
public static AIVector2D create(long address)
Returns a newAIVector2Dinstance 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.Bufferinstance 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().
-
-