|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJsVect3D
Constructor Summary | |
JsVect3D(double[] Xyz)
Construtor for Js Vects |
|
JsVect3D(double x,
double y,
double z)
Construtor for Js Vects |
Method Summary | |
JsVect3D |
add(JsVect3D v2)
Add two 3 dimensional vectors. |
JsVect3D |
com(int a,
int b,
JsVect3D v2)
Compute a vector linear combination of two double precision, 3-dimensional vectors |
JsVect3D |
com3(int a,
int b,
int c,
JsVect3D v2,
JsVect3D v3)
This subroutine computes the vector linear combination a*v1 + b*v2 + c*v3 of double precision, 3-dimensional vectors. |
JsVect3D |
cross(JsVect3D v2)
Compute the cross product of two 3-dimensional vectors |
double |
dist(JsVect3D v2)
Return the distance between two three-dimensional vectors |
double |
dot(JsVect3D v2)
Compute the dot product of two double precision, 3-dimensional vectors |
double[] |
getData()
Accesor for Js Vects |
double[] |
getVect()
Accesor for Js Vects |
double |
getVect(int n)
|
JsVect3D |
hat()
Find the unit vector along a double precision 3-dimensional vector |
JsVect3D |
negate()
Negate a double precision 3-dimensional vector |
double |
norm()
Compute the magnitude of a double precision, 3-dimensional vector |
JsVect3D |
perp(JsVect3D v2)
Find the component of a vector that is perpendicular to a second vector. |
JsVect3D |
proj(JsPlane plane)
Project a vector onto a specified plane, orthogonally |
JsVect3D |
proj(JsPlane projpl,
JsPlane invpl)
Find the vector in a specified plane that maps to a specified vector in another plane under orthogonal projection |
JsVect3D |
proj(JsVect3D v2)
finds the projection of one vector onto another vector. |
double |
rel(JsVect3D v2)
RReturn the relative difference between two 3-dimensional vectors |
JsVect3D |
rot(JsVect3D axis,
double angle)
Rotate a vector about a specified axis vector by a specified angle and return the rotated vector |
JsVect3D |
scl(double scale)
Multiply a scalar and a 3-dimensional double precision vector |
double |
sep(JsVect3D v2)
Find the separation angle in radians between two double precision, 3-dimensional vectors. |
JsVect3D |
sub(JsVect3D v2)
Sub two 3 dimensional vectors. |
JsVect3D |
tm(JsMat3D m)
Multiply the transpose of a 3-dimensional column vector, a 3x3 matrix, and a 3-dimensional column vector |
JsVect |
toJsVect()
Return the JsVect Corresponding to the JsVect3D |
boolean |
zero()
Indicate whether a 3-vector is the zero vector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JsVect3D(double x, double y, double z)
x
- the x component of the vectory
- the y component of the vectorz
- the z component of the vectorpublic JsVect3D(double[] Xyz)
Method Detail |
public double getVect(int n)
n
- the indice of component of the vector to get
public JsVect toJsVect()
public double[] getVect()
public double[] getData()
public JsVect3D add(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public JsVect3D cross(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public double dist(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public double dot(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be dotted
java.lang.Exception
public JsVect3D hat() throws java.lang.Exception
java.lang.Exception
public JsVect3D com3(int a, int b, int c, JsVect3D v2, JsVect3D v3) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public JsVect3D com(int a, int b, JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public JsVect3D negate() throws java.lang.Exception
java.lang.Exception
public double norm() throws java.lang.Exception
java.lang.Exception
public JsVect3D perp(JsVect3D v2) throws java.lang.Exception
java.lang.Exception
public JsVect3D proj(JsPlane plane) throws java.lang.Exception
java.lang.Exception
public JsVect3D proj(JsPlane projpl, JsPlane invpl) throws java.lang.Exception
projpl
- plane containing the vectorinvpl
- plane
containing the inverse image of the vector under
orthogonal projection onto projpl
java.lang.Exception
public JsVect3D proj(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public double rel(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public JsVect3D rot(JsVect3D axis, double angle) throws java.lang.Exception
java.lang.Exception
public JsVect3D scl(double scale) throws java.lang.Exception
java.lang.Exception
public double sep(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public JsVect3D sub(JsVect3D v2) throws java.lang.Exception
v2
- the vector to be added
java.lang.Exception
public boolean zero() throws java.lang.Exception
java.lang.Exception
public JsVect3D tm(JsMat3D m) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |