|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--marchingcubes.MCVector3
| Field Summary | |
protected double |
x
|
protected double |
y
|
protected double |
z
|
| Constructor Summary | |
MCVector3()
default contructor of a MCVector3 object |
|
MCVector3(double x,
double y,
double z)
contructor of a MCVector3 object |
|
MCVector3(marchingcubes.MCVector3 v)
copy contructor of a MCVector3 object |
|
MCVector3(marchingcubes.MCVector4 v)
contructor of a MCVector3 object from a four dimensional vector |
|
| Method Summary | |
marchingcubes.MCVector3 |
add(double x,
double y,
double z)
adds values to the vectors components |
marchingcubes.MCVector3 |
add(marchingcubes.MCVector3 v)
performs an addition between two vectors |
marchingcubes.MCVector3 |
cross(marchingcubes.MCVector3 v)
compute cross product |
marchingcubes.MCVector3 |
div(double k)
performs a division by a scalar |
double |
dot(marchingcubes.MCVector3 v)
compute dot product |
double |
length()
returns the length of the vector |
marchingcubes.MCVector3 |
mult(double k)
performs a multiplication by a scalar |
marchingcubes.MCVector3 |
normalize()
makes the vectors length equal to 1 |
marchingcubes.MCVector3 |
sub(double x,
double y,
double z)
substracts values to the vectors components |
marchingcubes.MCVector3 |
sub(marchingcubes.MCVector3 v)
performs a substraction between two vectors |
java.lang.String |
toString()
returns a string representation of the vector |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double x
protected double y
protected double z
| Constructor Detail |
public MCVector3()
public MCVector3(double x,
double y,
double z)
x - x componenty - y componentz - z componentpublic MCVector3(marchingcubes.MCVector3 v)
v - the vector to be duplicatedpublic MCVector3(marchingcubes.MCVector4 v)
v - a four dimensional vector| Method Detail |
public double length()
public marchingcubes.MCVector3 normalize()
public marchingcubes.MCVector3 add(marchingcubes.MCVector3 v)
v - the vector to add
public marchingcubes.MCVector3 add(double x,
double y,
double z)
x - value to add to the x component
public marchingcubes.MCVector3 sub(marchingcubes.MCVector3 v)
v - the vector to substract
public marchingcubes.MCVector3 sub(double x,
double y,
double z)
x - value to substract to the x component
public marchingcubes.MCVector3 mult(double k)
k - the scalar value to multiply by
public marchingcubes.MCVector3 div(double k)
k - the scalar value to divide by
public double dot(marchingcubes.MCVector3 v)
v - the vector used for computation
public marchingcubes.MCVector3 cross(marchingcubes.MCVector3 v)
v - the vector used for computation
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||