com.metaio.sdk.jni
Class Vector2di

java.lang.Object
  extended by com.metaio.sdk.jni.Vector2di

public class Vector2di
extends Object

Structure that defines an integer 2D vector.


Constructor Summary
Vector2di()
           
Vector2di(int _n)
           
Vector2di(int _x, int _y)
           
Vector2di(long cPtr, boolean cMemoryOwn)
           
Vector2di(Vector2di other)
           
 
Method Summary
 void delete()
           
static long getCPtr(Vector2di obj)
           
 int getX()
          x component of the vector
 int getY()
          y component of the vector
 boolean isNull()
          true if null vector, else false
 void setX(int value)
          x component of the vector
 void setY(int value)
          y component of the vector
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vector2di

public Vector2di(long cPtr,
                 boolean cMemoryOwn)

Vector2di

public Vector2di()

Vector2di

public Vector2di(int _n)
Parameters:
_n - x and y components of the vector

Vector2di

public Vector2di(int _x,
                 int _y)
Parameters:
_x - x component of the vector
_y - y component of the vector

Vector2di

public Vector2di(Vector2di other)
Method Detail

getCPtr

public static long getCPtr(Vector2di obj)

delete

public void delete()

setX

public void setX(int value)
x component of the vector


getX

public int getX()
x component of the vector


setY

public void setY(int value)
y component of the vector


getY

public int getY()
y component of the vector


isNull

public boolean isNull()
true if null vector, else false


toString

public String toString()
Overrides:
toString in class Object