Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author camille
- */
- public class pairvect
- {
- private vect V1, V2;
- private static int nPV;
- pairvect(int a1, int a2, int a3, int b1, int b2, int b3)
- {
- this.V1 = new vect(a1, a2, a3);
- this.V2 = new vect(b1, b2, b3);
- nPV++;
- }
- pairvect(vect pV1, vect pV2)
- {
- this.V1 = new vect(pV1.getA(), pV1.getB(), pV1.getC());
- this.V2 = new vect(pV2.getA(), pV2.getB(), pV2.getC());
- nPV++;
- }
- public vect getV1()
- {
- return this.V1;
- }
- public vect getV2()
- {
- return this.V2;
- }
- public void display()
- {
- System.out.println("Vecteur 3D");
- V1.display();
- V2.display();
- }
- public static int pairVectCounter()
- {
- return nPV;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement