SEdit.Formalisms.World.Preys
Class Vector2D
java.lang.Object
SEdit.Formalisms.World.Preys.Vector2D
public class Vector2D
- extends java.lang.Object
Titre : Preys
Description :
Copyright : Copyright (c) 2000
Société :
- Version:
- 1.0
- Author:
- J. Ferber
Constructor Summary |
Vector2D(double _x,
double _y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Vector2D
public Vector2D(double _x,
double _y)
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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.