Package com.openinventor.inventor
Class SbVec4ui32
- java.lang.Object
-
- com.openinventor.inventor.SbBasic
-
- com.openinventor.inventor.SbVec4ui32
-
public class SbVec4ui32 extends SbBasic
4D vector class. 4D vector class used to store 4D integer 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
-
Constructor Summary
Constructors Constructor Description SbVec4ui32()
SbVec4ui32(int[] components)
SbVec4ui32(int c0, int c1, int c2, int c3)
SbVec4ui32(SbVec4ui32 copyFrom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SbVec4ui32 u)
Component-wise vector addition operator.void
divide(double d)
Component-wise scalar division operator.void
divide(int d)
Component-wise scalar division operator.int
dot(SbVec4ui32 v)
Returns dot (inner) product of vector and another vector.boolean
equals(java.lang.Object obj)
int[]
getValue()
int
getValueAt(int index)
int
getW()
int
getX()
int
getY()
int
getZ()
SbVec4ui32
minus(SbVec4ui32 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.SbVec4ui32
over(double d)
Component-wise binary scalar division operator.SbVec4ui32
over(int d)
Component-wise binary scalar division operator.SbVec4ui32
plus(SbVec4ui32 v2)
Component-wise binary vector addition operator.SbVec4ui32
setValue(int[] components)
SbVec4ui32
setValue(int[] components, int startIndex)
SbVec4ui32
setValue(int c0, int c1, int c2, int c3)
void
setValue(SbVec4ui32 copyFrom)
void
setValueAt(int index, int value)
void
setW(int value)
void
setX(int value)
void
setY(int value)
void
setZ(int value)
void
substract(SbVec4ui32 u)
Component-wise vector subtraction operator.SbVec4ui32
times(double d)
Component-wise binary scalar multiplication operator.SbVec4ui32
times(int d)
Component-wise binary scalar multiplication operator.static SbVec4ui32[]
toArray(long nativeArray, long length)
-
-
-
Constructor Detail
-
SbVec4ui32
public SbVec4ui32()
-
SbVec4ui32
public SbVec4ui32(int c0, int c1, int c2, int c3)
-
SbVec4ui32
public SbVec4ui32(int[] components)
-
SbVec4ui32
public SbVec4ui32(SbVec4ui32 copyFrom)
-
-
Method Detail
-
setX
public void setX(int value)
-
setValue
public SbVec4ui32 setValue(int c0, int c1, int c2, int c3)
-
setValue
public void setValue(SbVec4ui32 copyFrom)
-
setY
public void setY(int value)
-
getValueAt
public int getValueAt(int index)
-
getValue
public int[] getValue()
-
setValue
public SbVec4ui32 setValue(int[] components, int startIndex)
-
setValueAt
public void setValueAt(int index, int value)
-
setValue
public SbVec4ui32 setValue(int[] components)
-
getZ
public int getZ()
-
getW
public int getW()
-
setZ
public void setZ(int value)
-
setW
public void setW(int value)
-
getY
public int getY()
-
getX
public int getX()
-
toArray
public static SbVec4ui32[] toArray(long nativeArray, long length)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
plus
public SbVec4ui32 plus(SbVec4ui32 v2)
Component-wise binary vector addition operator.
-
minus
public SbVec4ui32 minus(SbVec4ui32 v2)
Component-wise binary vector subtraction operator.
-
over
public SbVec4ui32 over(double d)
Component-wise binary scalar division operator.
-
dot
public int dot(SbVec4ui32 v)
Returns dot (inner) product of vector and another vector.
-
multiply
public void multiply(int d)
Component-wise scalar multiplication operator.
-
times
public SbVec4ui32 times(int d)
Component-wise binary scalar multiplication operator.
-
substract
public void substract(SbVec4ui32 u)
Component-wise vector subtraction operator.
-
over
public SbVec4ui32 over(int d)
Component-wise binary scalar division operator.
-
times
public SbVec4ui32 times(double d)
Component-wise binary scalar multiplication operator.
-
divide
public void divide(int d)
Component-wise scalar division operator.
-
multiply
public void multiply(double d)
Component-wise scalar multiplication operator.
-
add
public void add(SbVec4ui32 u)
Component-wise vector addition operator.
-
divide
public void divide(double d)
Component-wise scalar division operator.
-
-