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

Class XYZ

source code

Representation of Cartesian coordinates in space.


Since: 2.45

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

__init__(x, y, z)
(Constructor)

source code 

Creates Cartesian coordinates in space.

This is mostly useful for language bindings.

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

Since: 2.47

copy()

source code 

Copies Cartesian coordinates in space.

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

Since: 2.45

free()

source code 

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

Since: 2.45