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