Package org.blender.dna
Class vec3f
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.vec3f
-
public class vec3f extends CFacade
Generated facet for DNA struct type 'vec3f'.Class Documentation
Blender Source Code
not used at the moment typedef struct vec2i { int x, y; } vec2i;
typedef struct vec2d { double x, y; } vec2d;
typedef struct vec3i { int x, y, z; } vec3i;
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__x
Field descriptor (offset) for struct member 'x'.static long[]
__DNA__FIELD__y
Field descriptor (offset) for struct member 'y'.static long[]
__DNA__FIELD__z
Field descriptor (offset) for struct member 'z'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct vec3f.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description vec3f(long __address, Block __block, BlockTable __blockTable)
protected
vec3f(vec3f that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<vec3f>
__io__addressof()
Instantiates a pointer on this instance.float
getX()
Get method for struct member 'x'.float
getY()
Get method for struct member 'y'.float
getZ()
Get method for struct member 'z'.void
setX(float x)
Set method for struct member 'x'.void
setY(float y)
Set method for struct member 'y'.void
setZ(float z)
Set method for struct member 'z'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct vec3f.It is required when allocating a new block to store data for vec3f.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__x
public static final long[] __DNA__FIELD__x
Field descriptor (offset) for struct member 'x'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
vec3f vec3f = ...; CPointer<Object> p = vec3f.__dna__addressof(vec3f.__DNA__FIELD__x); CPointer<Float> p_x = p.cast(new Class[]{Float.class});
Metadata
- Field: 'x'
- Signature: 'float'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__y
public static final long[] __DNA__FIELD__y
Field descriptor (offset) for struct member 'y'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
vec3f vec3f = ...; CPointer<Object> p = vec3f.__dna__addressof(vec3f.__DNA__FIELD__y); CPointer<Float> p_y = p.cast(new Class[]{Float.class});
Metadata
- Field: 'y'
- Signature: 'float'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__z
public static final long[] __DNA__FIELD__z
Field descriptor (offset) for struct member 'z'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
vec3f vec3f = ...; CPointer<Object> p = vec3f.__dna__addressof(vec3f.__DNA__FIELD__z); CPointer<Float> p_z = p.cast(new Class[]{Float.class});
Metadata
- Field: 'z'
- Signature: 'float'
- Actual Size (32bit/64bit): 4/4
-
-
Constructor Detail
-
vec3f
public vec3f(long __address, Block __block, BlockTable __blockTable)
-
vec3f
protected vec3f(vec3f that)
-
-
Method Detail
-
getX
public float getX() throws java.io.IOException
Get method for struct member 'x'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__x
-
setX
public void setX(float x) throws java.io.IOException
Set method for struct member 'x'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__x
-
getY
public float getY() throws java.io.IOException
Get method for struct member 'y'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__y
-
setY
public void setY(float y) throws java.io.IOException
Set method for struct member 'y'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__y
-
getZ
public float getZ() throws java.io.IOException
Get method for struct member 'z'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__z
-
setZ
public void setZ(float z) throws java.io.IOException
Set method for struct member 'z'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__z
-
-