Module gwy :: Class XY
[hide private]
[frames] | no frames]

Class XY

source code

Representation of Cartesian coordinates in plane.


Since: 2.45

Instance Methods [hide private]
 
__init__(x, y)
Creates Cartesian coordinates in plane.
source code
 
copy()
Copies Cartesian coordinates in plane.
source code
 
free()
Frees Cartesian coordinates in plane created with XY.copy().
source code
Method Details [hide private]

__init__(x, y)
(Constructor)

source code 

Creates Cartesian coordinates in plane.

This is mostly useful for language bindings.

Parameters:
  • x - X-coordinate. (float)
  • y - Y-coordinate. (float)
Returns:
New XY structure. The result must be freed using XY.free(), not g_free(). (XY)

Since: 2.47

copy()

source code 

Copies Cartesian coordinates in plane.

Returns:
A copy of xy. The result must be freed using XY.free(), not g_free(). (XY)

Since: 2.45

free()

source code 

Frees Cartesian coordinates in plane created with XY.copy().

Since: 2.45