Package org.gnome.graphene
Class Simd4F
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.graphene.Simd4F
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionSimd4F()Allocate a new Simd4F.Simd4F(float x, float y, float z, float w) Allocate a new Simd4F with the fields set to the provided values.Allocate a new Simd4F with the fields set to the provided values.Allocate a new Simd4F.Simd4F(MemorySegment address) Create a Simd4F proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.floatreadW()Read the value of the fieldw.floatreadX()Read the value of the fieldx.floatreadY()Read the value of the fieldy.floatreadZ()Read the value of the fieldz.voidwriteW(float w) Write a value in the fieldw.voidwriteX(float x) Write a value in the fieldx.voidwriteY(float y) Write a value in the fieldy.voidwriteZ(float z) Write a value in the fieldz.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Simd4F
Create a Simd4F proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Simd4F
Allocate a new Simd4F.- Parameters:
arena- to control the memory allocation scope
-
Simd4F
public Simd4F()Allocate a new Simd4F. The memory is allocated withArena.ofAuto(). -
Simd4F
Allocate a new Simd4F with the fields set to the provided values.- Parameters:
x- value for the fieldxy- value for the fieldyz- value for the fieldzw- value for the fieldwarena- to control the memory allocation scope
-
Simd4F
public Simd4F(float x, float y, float z, float w) Allocate a new Simd4F with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
x- value for the fieldxy- value for the fieldyz- value for the fieldzw- value for the fieldw
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readX
public float readX()Read the value of the fieldx.- Returns:
- The value of the field
x
-
writeX
public void writeX(float x) Write a value in the fieldx.- Parameters:
x- The new value for the fieldx
-
readY
public float readY()Read the value of the fieldy.- Returns:
- The value of the field
y
-
writeY
public void writeY(float y) Write a value in the fieldy.- Parameters:
y- The new value for the fieldy
-
readZ
public float readZ()Read the value of the fieldz.- Returns:
- The value of the field
z
-
writeZ
public void writeZ(float z) Write a value in the fieldz.- Parameters:
z- The new value for the fieldz
-
readW
public float readW()Read the value of the fieldw.- Returns:
- The value of the field
w
-
writeW
public void writeW(float w) Write a value in the fieldw.- Parameters:
w- The new value for the fieldw
-