public class SbVec2s extends SbBasic
See also:
SbRotation
, SbRotationd
, SbVec2d
, SbVec2f
, SbVec2i32
, SbVec3d
, SbVec3f
, SbVec3i32
, SbVec3s
, SbVec4b
, SbVec4d
, SbVec4f
, SbVec4i32
, SbVec4s
, SbVec4ub
, SbVec4ui32
, SbVec4us
Modifier and Type | Field and Description |
---|---|
short[] |
array |
Constructor and Description |
---|
SbVec2s() |
SbVec2s(SbVec2i32 v)
Constructor given an
SbVec2i32 . |
SbVec2s(SbVec2s copyFrom) |
SbVec2s(short[] components) |
SbVec2s(short c0,
short c1) |
Modifier and Type | Method and Description |
---|---|
void |
add(SbVec2s 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(SbVec2s v)
Returns dot (inner) product of vector and another vector.
|
boolean |
equals(java.lang.Object obj) |
short |
getCoord(int i)
Deprecated.
|
short[] |
getValue() |
short |
getValueAt(int index) |
short |
getX() |
short |
getY() |
SbVec2s |
minus(SbVec2s 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.
|
SbVec2s |
over(double d)
Component-wise binary scalar division operator.
|
SbVec2s |
over(int d)
Component-wise binary scalar division operator.
|
SbVec2s |
plus(SbVec2s v2)
Component-wise binary vector addition operator.
|
void |
setCoord(int i,
short value)
Deprecated.
|
void |
setValue(SbVec2s copyFrom) |
SbVec2s |
setValue(short[] components) |
SbVec2s |
setValue(short[] components,
int startIndex) |
SbVec2s |
setValue(short c0,
short c1) |
void |
setValueAt(int index,
short value) |
void |
setX(short value) |
void |
setY(short value) |
void |
substract(SbVec2s u)
Component-wise vector subtraction operator.
|
SbVec2s |
times(double d)
Component-wise binary scalar multiplication operator.
|
SbVec2s |
times(int d)
Component-wise binary scalar multiplication operator.
|
static SbVec2s[] |
toArray(long nativeArray,
long length) |
public SbVec2s()
public SbVec2s(short c0, short c1)
public SbVec2s(short[] components)
public SbVec2s(SbVec2s copyFrom)
public SbVec2s setValue(short[] components, int startIndex)
public void setValueAt(int index, short value)
@Deprecated public void setCoord(int i, short value)
public void setY(short value)
public void setX(short value)
public SbVec2s setValue(short c0, short c1)
public void setValue(SbVec2s copyFrom)
public short[] getValue()
public short getValueAt(int index)
public SbVec2s setValue(short[] components)
public short getY()
@Deprecated public short getCoord(int i)
public short getX()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public SbVec2s over(double d)
public static SbVec2s[] toArray(long nativeArray, long length)
public void negate()
public void multiply(int d)
public int dot(SbVec2s v)
public SbVec2s times(int d)
public SbVec2s over(int d)
public SbVec2s times(double d)
public void substract(SbVec2s u)
public void divide(int d)
public void multiply(double d)
public void add(SbVec2s u)
public void divide(double d)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com