Interface ConstFloat3
- All Known Implementing Classes:
Float3
public interface ConstFloat3
Read-only access to a
Float3. (native type: const Float3)-
Method Summary
Modifier and TypeMethodDescriptionfloatget(int index) Return the specified component.voidput(FloatBuffer storeBuffer) Write all 3 components to the specified buffer and advance the buffer's position by 3.floatx()Return the first (X) component.floaty()Return the 2nd (Y) component.floatz()Return the 3rd (Z) component.
-
Method Details
-
get
float get(int index) Return the specified component. The vector is unaffected.- Parameters:
index- 0, 1, or 2- Returns:
- the X component if index=0, the Y component if index=1, or the Z component if index=2
- Throws:
IllegalArgumentException- if index is not 0, 1, or 2
-
put
Write all 3 components to the specified buffer and advance the buffer's position by 3. The vector is unaffected.- Parameters:
storeBuffer- the destination buffer (notnull)
-
x
float x()Return the first (X) component. The vector is unaffected.- Returns:
- the component value
-
y
float y()Return the 2nd (Y) component. The vector is unaffected.- Returns:
- the component value
-
z
float z()Return the 3rd (Z) component. The vector is unaffected.- Returns:
- the component value
-