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[] |
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 |
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(SbVec2s copyFrom)
public SbVec2s(short[] components)
public SbVec2s(short c0, short c1)
public SbVec2s()
public void setValue(SbVec2s copyFrom)
public short[] getValue()
public SbVec2s setValue(short[] components)
public SbVec2s setValue(short[] components, int startIndex)
public void setValueAt(int index, short value)
public short getValueAt(int index)
public SbVec2s setValue(short c0, short c1)
public short getX()
public void setX(short value)
public short getY()
public void setY(short value)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void negate()
public int dot(SbVec2s v)
public static SbVec2s[] toArray(long nativeArray, long length)
public SbVec2s times(int d)
public void multiply(double d)
public SbVec2s times(double d)
public void divide(int d)
public void add(SbVec2s u)
public void substract(SbVec2s u)
public void divide(double d)
public SbVec2s over(double d)
public void multiply(int d)
public SbVec2s over(int d)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com