|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaillage.Vect
public class Vect
Class representing a vector (geometric)
Constructor Summary | |
---|---|
Vect(Point P,
Point Q)
Constructor of a vector PQ defined by 2 points |
Method Summary | |
---|---|
Vect |
diff(Vect V)
Returns the difference of 2 vectors |
Point |
getCoordinates()
Returns the cartesian coordinates of the vector |
Point |
getP1()
Returns the #1 point of the vector |
Point |
getP2()
Returns the #2 point of the vector |
double |
norm()
Returns the norm of the vector |
void |
printCoordinates()
Displays the cartesian coordinates of the vector |
double |
produitMixte(Vect a,
Vect c)
Retourne (A^B). |
double |
scalar(Vect V)
Returns the scalar product with another vecetor |
Vect |
sum(Vect V)
Returns the sum of 2 vectors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Vect(Point P, Point Q)
P
- Point #1Q
- Point #2Method Detail |
---|
public Point getP1()
public Point getP2()
public Point getCoordinates()
public double norm()
public Vect sum(Vect V)
V
- Vector to add
public Vect diff(Vect V)
V2
- Vector from which the vector is substracted
public double scalar(Vect V)
public double produitMixte(Vect a, Vect c)
public void printCoordinates()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |