Glade Reference


Vector class

A Vector class represents a direction.

 

v= Vector;

Creates a Vector object v. The Vector is initialised to (0 0) by default.

 

setX(int x);

Set the Vector X value.

 

setY(int y);

Set the Vector Y value.

 

operator +

Adds the two Vectors.

 

operator *

Returns a Vector multiplied by a scalar (a double).

 

 

Contents|Index

Copyright © Peardrop Design 2016.