Package com.openinventor.inventor
Class SbVec4b
java.lang.Object
com.openinventor.inventor.SbBasic
com.openinventor.inventor.SbVec4b
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Component-wise vector addition operator.void
divide
(double d) Component-wise scalar division operator.void
divide
(int d) Component-wise scalar division operator.int
Returns dot (inner) product of vector and another vector.boolean
Returns vector components.byte[]
getValue()
byte
getValueAt
(int index) byte
getW()
byte
getX()
byte
getY()
byte
getZ()
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.over
(double d) Component-wise binary scalar division operator.over
(int d) Component-wise binary scalar division operator.Component-wise binary vector addition operator.setValue
(byte[] components) setValue
(byte[] components, int startIndex) setValue
(byte c0, byte c1, byte c2, byte c3) void
void
setValueAt
(int index, byte value) void
setW
(byte value) void
setX
(byte value) void
setY
(byte value) void
setZ
(byte value) void
Component-wise vector subtraction operator.times
(double d) Component-wise binary scalar multiplication operator.times
(int d) Component-wise binary scalar multiplication operator.static SbVec4b[]
toArray
(long nativeArray, long length)
-
Field Details
-
Constructor Details
-
Method Details
-
setValue
-
setValue
-
setX
public void setX(byte value) -
setY
public void setY(byte value) -
setValue
-
getValueAt
public byte getValueAt(int index) -
setValue
-
getValue
public byte[] getValue() -
setValueAt
public void setValueAt(int index, byte value) -
getZ
public byte getZ() -
getY
public byte getY() -
getX
public byte getX() -
setZ
public void setZ(byte value) -
getW
public byte getW() -
setW
public void setW(byte value) -
toArray
-
over
Component-wise binary scalar division operator. -
minus
Component-wise binary vector subtraction operator. -
equals
-
plus
Component-wise binary vector addition operator. -
negate
public void negate()Negates each component of vector in place. -
getString
Returns vector components. -
dot
Returns dot (inner) product of vector and another vector. -
times
Component-wise binary scalar multiplication operator. -
substract
Component-wise vector subtraction operator. -
over
Component-wise binary scalar division operator. -
times
Component-wise binary scalar multiplication operator. -
add
Component-wise vector addition operator. -
multiply
public void multiply(double d) Component-wise scalar multiplication operator. -
multiply
public void multiply(int d) Component-wise scalar multiplication operator. -
divide
public void divide(double d) Component-wise scalar division operator. -
divide
public void divide(int d) Component-wise scalar division operator.
-