GwyXY

GwyXY — Cartesian coordinates in plane

Functions

GwyXY * gwy_xy_new ()
GwyXY * gwy_xy_copy ()
void gwy_xy_free ()

Includes

#include <libgwyddion/gwyddion.h>

Description

Functions

gwy_xy_new()

GwyXY *
gwy_xy_new (gdouble x,
            gdouble y);

Creates Cartesian coordinates in plane.

This is mostly useful for language bindings.

Parameters

x

X-coordinate.

 

y

Y-coordinate.

 

Returns

New XY structure. The result should be freed using gwy_xy_free().


gwy_xy_copy()

GwyXY *
gwy_xy_copy (const GwyXY *xy);

Copies Cartesian coordinates in plane.

Parameters

xy

Cartesian coordinates in plane.

 

Returns

A copy of xy . The result should be freed using gwy_xy_free().


gwy_xy_free()

void
gwy_xy_free (GwyXY *xy);

Frees Cartesian coordinates in plane created with gwy_xy_copy().

Parameters

xy

Cartesian coordinates in plane.