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.
|
float |
getCoord(int i)
Deprecated.
|
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.
|
void |
setCoord(int i,
float value)
Deprecated.
|
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(float[] components)
public SbVec4f(SbVec4f copyFrom)
public SbVec4f(float c0, float c1, float c2, float c3)
public SbVec4f()
public SbVec4f setValue(float c0, float c1, float c2, float c3)
public void setX(float value)
@Deprecated public void setCoord(int i, float value)
public void setY(float value)
public void setZ(float value)
public void setValueAt(int index, float value)
public void setValue(SbVec4f copyFrom)
public float[] getValue()
public float getValueAt(int index)
public SbVec4f setValue(float[] components, int startIndex)
public SbVec4f setValue(float[] components)
public void setW(float value)
public float getW()
public float getY()
public float getZ()
public float getX()
@Deprecated public float getCoord(int i)
public float lengthSquared()
length()
.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 void negate()
public SbVec3f getReal()
public float dot(SbVec4f v)
public float normalize()
public void add(SbVec4f u)
public SbVec4f times(float d)
public void substract(SbVec4f u)
public void divide(float d)
public void multiply(float d)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com