Package com.openinventor.inventor
Class SbVec3i32
- java.lang.Object
-
- com.openinventor.inventor.SbBasic
-
- com.openinventor.inventor.SbVec3i32
-
public class SbVec3i32 extends SbBasic
3D vector class. 3D vector class used to store 3D vectors and points. This class is used throughout Open Inventor for arguments and return values.
-
-
Field Summary
Fields Modifier and Type Field Description int[]
array
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SbVec3i32 u)
Component-wise vector addition operator.void
divide(double d)
Component-wise scalar division operator.void
divide(int d)
Component-wise scalar division operator.void
divide(SbVec3i32 u)
Component-wise vector division operator.int
dot(SbVec3i32 v)
Returns dot (inner) product of vector and another vector.boolean
equals(java.lang.Object obj)
int
getMaxComponent()
Returns max(x, y, z)int[]
getValue()
int
getValueAt(int index)
int
getX()
int
getY()
int
getZ()
SbVec3i32
minus(SbVec3i32 v2)
Component-wise binary vector subtraction operator.void
multiply(double d)
Component-wise scalar multiplication operator.void
multiply(int d)
Component-wise scalar multiplication operator.void
multiply(SbVec3i32 v)
Component-wise vector multiplication operator.void
negate()
Negates each component of vector in place.SbVec3i32
over(double d)
Component-wise binary scalar division operator.SbVec3i32
over(int d)
Component-wise binary scalar division operator.SbVec3i32
plus(SbVec3i32 v)
Component-wise binary vector addition operator.SbVec3i32
setValue(int[] components)
SbVec3i32
setValue(int[] components, int startIndex)
SbVec3i32
setValue(int c0, int c1, int c2)
void
setValue(SbVec3i32 copyFrom)
SbVec3i32
setValue(SbVec3s v)
Sets value of vector from anSbVec3s
(adapter).void
setValueAt(int index, int value)
void
setX(int value)
void
setY(int value)
void
setZ(int value)
void
substract(SbVec3i32 u)
Component-wise vector subtraction operator.SbVec3i32
times(double d)
Component-wise binary scalar multiplication operator.SbVec3i32
times(int d)
Component-wise binary scalar multiplication operator.SbVec3i32
times(SbVec3i32 v)
Component-wise vector multiplication operator.static SbVec3i32[]
toArray(long nativeArray, long length)
-
-
-
Method Detail
-
getValueAt
public int getValueAt(int index)
-
setValueAt
public void setValueAt(int index, int value)
-
setValue
public SbVec3i32 setValue(int c0, int c1, int c2)
-
setValue
public SbVec3i32 setValue(int[] components)
-
setValue
public SbVec3i32 setValue(int[] components, int startIndex)
-
setValue
public void setValue(SbVec3i32 copyFrom)
-
getValue
public int[] getValue()
-
getY
public int getY()
-
getX
public int getX()
-
setX
public void setX(int value)
-
setY
public void setY(int value)
-
setZ
public void setZ(int value)
-
getZ
public int getZ()
-
over
public SbVec3i32 over(int d)
Component-wise binary scalar division operator.
-
getMaxComponent
public int getMaxComponent()
Returns max(x, y, z)
-
multiply
public void multiply(int d)
Component-wise scalar multiplication operator.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toArray
public static SbVec3i32[] toArray(long nativeArray, long length)
-
over
public SbVec3i32 over(double d)
Component-wise binary scalar division operator.
-
multiply
public void multiply(double d)
Component-wise scalar multiplication operator.
-
divide
public void divide(int d)
Component-wise scalar division operator.
-
dot
public int dot(SbVec3i32 v)
Returns dot (inner) product of vector and another vector.
-
divide
public void divide(double d)
Component-wise scalar division operator.
-
negate
public void negate()
Negates each component of vector in place.
-
times
public SbVec3i32 times(int d)
Component-wise binary scalar multiplication operator.
-
times
public SbVec3i32 times(double d)
Component-wise binary scalar multiplication operator.
-
multiply
public void multiply(SbVec3i32 v)
Component-wise vector multiplication operator.
-
add
public void add(SbVec3i32 u)
Component-wise vector addition operator.
-
divide
public void divide(SbVec3i32 u)
Component-wise vector division operator.
-
substract
public void substract(SbVec3i32 u)
Component-wise vector subtraction operator.
-
-