SEdit.Formalisms.World.Preys
Class Vector2D

java.lang.Object
  extended bySEdit.Formalisms.World.Preys.Vector2D

public class Vector2D
extends Object

Titre : Preys Description : Copyright : Copyright (c) 2000 Société :

Version:
1.0
Author:
J. Ferber

Constructor Summary
Vector2D(double _x, double _y)
           
 
Method Summary
 Vector2D add(Vector2D a)
           
 void addPolar(int d, int r)
           
 Vector2D getOpposite()
           
 double getX()
           
 double getY()
           
 Vector2D mult(double c)
           
 void normalize()
           
 void opposite()
           
 int rho()
           
 int theta()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vector2D

public Vector2D(double _x,
                double _y)
Method Detail

getX

public double getX()

getY

public double getY()

add

public Vector2D add(Vector2D a)

mult

public Vector2D mult(double c)

getOpposite

public Vector2D getOpposite()

opposite

public void opposite()

rho

public int rho()

theta

public int theta()

addPolar

public void addPolar(int d,
                     int r)

normalize

public void normalize()

toString

public String toString()


Copyright © J. Ferber, O. Gutknecht All Rights Reserved.