jhplot.v3d
Class Vector3d
- java.lang.Object
-
- jhplot.v3d.Vector3d
-
public class Vector3d extends java.lang.Object
Vector manipulations
-
-
Constructor Summary
Constructors Constructor and Description Vector3d()
Vector3d(float x, float y, float z)
Vector3d(Vector3d v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
add(Vector3d v)
void
cmul(Vector3d v)
void
copy(Vector3d v)
void
div(float f)
float
dot(Vector3d v)
boolean
equals(Vector3d v)
float
getX()
float
getY()
float
getZ()
void
mul(float f)
void
mul(Vector3d v)
void
normalize()
void
print()
void
set(float x, float y, float z)
void
sub(Vector3d v)
java.lang.String
toString()
float
vabs()
-
-
-
Constructor Detail
-
Vector3d
public Vector3d()
-
Vector3d
public Vector3d(Vector3d v)
-
Vector3d
public Vector3d(float x, float y, float z)
-
-
Method Detail
-
copy
public void copy(Vector3d v)
-
getX
public float getX()
-
getY
public float getY()
-
getZ
public float getZ()
-
set
public void set(float x, float y, float z)
-
add
public void add(Vector3d v)
-
sub
public void sub(Vector3d v)
-
cmul
public void cmul(Vector3d v)
-
dot
public float dot(Vector3d v)
-
mul
public void mul(Vector3d v)
-
mul
public void mul(float f)
-
div
public void div(float f)
-
equals
public boolean equals(Vector3d v)
-
vabs
public float vabs()
-
normalize
public void normalize()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
print
public void print()
-
-
DMelt 3.0 © DataMelt by jWork.ORG