| Top |
| GwyXY * | gwy_xy_new () |
| GwyXY * | gwy_xy_copy () |
| void | gwy_xy_free () |
| gdouble | gwy_xy_len () |
| gdouble | gwy_xy_len2 () |
| gdouble | gwy_xy_dotprod () |
| gdouble | gwy_xy_crossprodz () |
GwyXY * gwy_xy_new (gdouble x,gdouble y);
Creates Cartesian coordinates in plane.
This is mostly useful for language bindings.
void
gwy_xy_free (GwyXY *xy);
Frees Cartesian coordinates in plane created with gwy_xy_copy().
gdouble gwy_xy_dotprod (const GwyXY *xy,const GwyXY *other);
Computes the inner product of two plane vectors.
gdouble gwy_xy_crossprodz (const GwyXY *xy,const GwyXY *other);
Computes the Z-component of a cross-product of two vectors given as plane vectors.
The vectors are interpreted the X and Y components of two space vectors which have zero Z-components. Their cross-product then has only one nonzero component: Z. This is what the function calculates.