About all my projects
NO_TITLE

NO_TITLE

Gnome::Graphene::T-point

Class initialization

new

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )

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

point-zero

Returns a point fixed at (0, 0).

method point-zero (--> CArray[N-Point] )

Return value; a fixed point.