Atavism Version 2018.1AGIS API

atavism.server.objects
Class Vector2

java.lang.Object
  extended by atavism.server.objects.Vector2
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Vector2
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

represents a 2d point, useful in 2D boundary calculations

See Also:
Serialized Form

Field Summary
 double x
           
 double y
           
 
Constructor Summary
Vector2()
           
Vector2(double x, double y)
           
Vector2(int x, int y)
           
Vector2(Point p)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y
Constructor Detail

Vector2

public Vector2()

Vector2

public Vector2(int x,
               int y)

Vector2

public Vector2(double x,
               double y)

Vector2

public Vector2(Point p)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2018 Dragonsan Studios Sp. z o.o.