NAME
SPVM::Point - Point object
SYNOPSYS
use Point;
my $point = Point->new;
my $point = Point->new_xy(1, 2);
$point->set_x(1);
$point->set_y(2);
my $x = $point->x;
my $y = $point->y;
DESCRIPTION
Point object represents a point.
CLASS METHODS
new
method new : Point ()
Create a new Point
object.
new_xy
method new_xy : Point ($x : int, $y : int);
Create a new Point
object with x and y.
INSTANCE METHODS
x
method x : int ()
Get x
field.
set_x
void set_x : int ($x : int)
Set x
field.
y
method y : int ();
Get y
field.
set_y
void set_y : int ($y : int)
Set y
field.