| Top |
| GwyXYZ * | gwy_xyz_new () |
| GwyXYZ * | gwy_xyz_copy () |
| void | gwy_xyz_free () |
| gdouble | gwy_xyz_len () |
| gdouble | gwy_xyz_len2 () |
| gdouble | gwy_xyz_dist2 () |
| gdouble | gwy_xyz_dotprod () |
| void | gwy_xyz_crossprod () |
GwyXYZ * gwy_xyz_new (gdouble x,gdouble y,gdouble z);
Creates Cartesian coordinates in space.
This is mostly useful for language bindings.
void
gwy_xyz_free (GwyXYZ *xyz);
Frees Cartesian coordinates in space created with gwy_xyz_copy().
gdouble
gwy_xyz_len2 (const GwyXYZ *xyz);
Computes the squared length of a space vector.
gdouble gwy_xyz_dist2 (const GwyXYZ *xyz,const GwyXYZ *other);
Computes the squared length of the difference of two space vectors.
gdouble gwy_xyz_dotprod (const GwyXYZ *xyz,const GwyXYZ *other);
Computes the inner product of two space vectors.