About my projects, examples and tutorials
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 ( )
Code

Record N-Point§

class N-Point:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {

  has gfloat $.x;
  has gfloat $.y;
}
Code
  • 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] )
Code

Return value; a fixed point.