public class SbVec4f extends SbBasic
See also:
SbRotation
, SbRotationd
, SbVec2d
, SbVec2f
, SbVec2i32
, SbVec2s
, SbVec3d
, SbVec3f
, SbVec3i32
, SbVec3s
, SbVec4b
, SbVec4d
, SbVec4i32
, SbVec4s
, SbVec4ub
, SbVec4ui32
, SbVec4us
Modifier and Type | Field and Description |
---|---|
float[] |
array |
Constructor and Description |
---|
SbVec4f() |
SbVec4f(float[] components) |
SbVec4f(float c0,
float c1,
float c2,
float c3) |
SbVec4f(SbVec4f copyFrom) |
Modifier and Type | Method and Description |
---|---|
void |
add(SbVec4f u)
Component-wise vector addition operator.
|
void |
divide(float d)
Component-wise scalar division operator.
|
float |
dot(SbVec4f v)
Returns dot (inner) product of vector and another vector.
|
boolean |
equals(java.lang.Object obj) |
boolean |
equals(SbVec4f v,
float tolerance)
Equality comparison within given tolerance - the square of the length of the maximum distance between the two vectors.
|
SbVec3f |
getReal()
Returns the real portion of the vector by dividing by the fourth value.
|
float[] |
getValue() |
float |
getValueAt(int index) |
float |
getW() |
float |
getX() |
float |
getY() |
float |
getZ() |
float |
length()
Returns geometric length of vector.
|
float |
lengthSquared()
Returns square length of vector.
|
SbVec4f |
minus(SbVec4f v2)
Component-wise binary vector subtraction operator.
|
void |
multiply(float d)
Component-wise scalar multiplication operator.
|
void |
negate()
Negates each component of vector in place.
|
float |
normalize()
Changes vector to be unit length.
|
SbVec4f |
over(float d)
Component-wise binary scalar division operator.
|
SbVec4f |
plus(SbVec4f v2)
Component-wise binary vector addition operator.
|
SbVec4f |
setValue(float[] components) |
SbVec4f |
setValue(float[] components,
int startIndex) |
SbVec4f |
setValue(float c0,
float c1,
float c2,
float c3) |
SbVec4f |
setValue(SbVec4d vec4d)
Sets value of vector from a double precision vector.
|
void |
setValue(SbVec4f copyFrom) |
void |
setValueAt(int index,
float value) |
void |
setW(float value) |
void |
setX(float value) |
void |
setY(float value) |
void |
setZ(float value) |
void |
substract(SbVec4f u)
Component-wise vector subtraction operator.
|
SbVec4f |
times(float d)
Component-wise binary scalar multiplication operator.
|
static SbVec4f[] |
toArray(long nativeArray,
long length) |
public SbVec4f()
public SbVec4f(SbVec4f copyFrom)
public SbVec4f(float[] components)
public SbVec4f(float c0, float c1, float c2, float c3)
public SbVec4f setValue(float c0, float c1, float c2, float c3)
public void setY(float value)
public void setX(float value)
public float getValueAt(int index)
public void setValue(SbVec4f copyFrom)
public void setValueAt(int index, float value)
public SbVec4f setValue(float[] components, int startIndex)
public float[] getValue()
public SbVec4f setValue(float[] components)
public void setZ(float value)
public float getZ()
public float getX()
public float getY()
public void setW(float value)
public float getW()
public static SbVec4f[] toArray(long nativeArray, long length)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equals(SbVec4f v, float tolerance)
public SbVec4f over(float d)
public float length()
public float lengthSquared()
length()
.public SbVec3f getReal()
public float dot(SbVec4f v)
public void negate()
public void add(SbVec4f u)
public void divide(float d)
public SbVec4f times(float d)
public void substract(SbVec4f u)
public void multiply(float d)
public float normalize()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com