public class Vector3d
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
Vector3d() |
Vector3d(double[] data) |
Vector3d(double x,
double y,
double z) |
Vector3d(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
Vector3d |
add(Vector3d other)
Vector sum.
|
static long[] |
cArrayUnwrap(Vector3d[] arrayWrapper) |
static Vector3d[] |
cArrayWrap(long[] cArray,
boolean cMemoryOwn) |
Vector3d |
cross(Vector3d other)
Cross product.
|
void |
delete() |
double |
dot(Vector3d other)
Dot product.
|
protected void |
finalize() |
static long |
getCPtr(Vector3d obj) |
double[] |
getData() |
double |
getX()
X component.
|
double |
getY()
Y component.
|
double |
getZ()
Z component.
|
Vector3d |
mul(double c)
Multiplication by scalar.
|
double |
norm()
Vector norm.
|
Vector3d |
normalized()
Normalized vector.
|
void |
setX(double value)
X component.
|
void |
setY(double value)
Y component.
|
void |
setZ(double value)
Z component.
|
Vector3d |
sub(Vector3d other)
Vector difference.
|
public Vector3d(long cPtr, boolean cMemoryOwn)
public Vector3d()
public Vector3d(double x, double y, double z)
public Vector3d(double[] data)
public static long getCPtr(Vector3d obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public static long[] cArrayUnwrap(Vector3d[] arrayWrapper)
public static Vector3d[] cArrayWrap(long[] cArray, boolean cMemoryOwn)
public double getX()
public double getY()
public double getZ()
public void setX(double value)
public void setY(double value)
public void setZ(double value)
public double[] getData()
public double dot(Vector3d other)
public Vector3d mul(double c)
public double norm()
public Vector3d normalized()