GwyXYZ

GwyXYZ — Cartesian coordinates in space

Functions

Includes

#include <libgwyddion/gwyddion.h>

Description

Functions

gwy_xyz_new()

GwyXYZ *
gwy_xyz_new (gdouble x,
             gdouble y,
             gdouble z);

Creates Cartesian coordinates in space.

This is mostly useful for language bindings.

Parameters

x

X-coordinate.

 

y

Y-coordinate.

 

z

Z-coordinate.

 

Returns

New XYZ structure. The result should be freed using gwy_xyz_free().


gwy_xyz_copy()

GwyXYZ *
gwy_xyz_copy (const GwyXYZ *xyz);

Copies Cartesian coordinates in space.

Parameters

xyz

Cartesian coordinates in space.

 

Returns

A copy of xyz . The result should be freed using gwy_xyz_free().


gwy_xyz_free()

void
gwy_xyz_free (GwyXYZ *xyz);

Frees Cartesian coordinates in space created with gwy_xyz_copy().

Parameters

xyz

Cartesian coordinates in space.