T-Point
Gnome::Graphene::T-point
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
Initialization of a type class is simple and only needed when the standalone functions are used.
method new ( )
#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------
Record N-Point
class N-Point:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has gfloat $.x;
has gfloat $.y;
}
x; the X coordinate of the point
y; the Y coordinate of the point
#------------------------------------------------------------------------------- #--[Standalone Functions]------------------------------------------------------- #-------------------------------------------------------------------------------
Standalone Functions
#-------------------------------------------------------------------------------
point-zero
Returns a point fixed at (0, 0).
method point-zero (--> CArray[N-Point] )
Return value; a fixed point.