GwySphereCoords

GwySphereCoords — Spherical coordinates

Synopsis




struct      GwySphereCoords;
GtkObject*  gwy_sphere_coords_new           (gdouble theta,
                                             gdouble phi);
gdouble     gwy_sphere_coords_get_theta     (GwySphereCoords *sphere_coords);
gdouble     gwy_sphere_coords_get_phi       (GwySphereCoords *sphere_coords);
void        gwy_sphere_coords_set_value     (GwySphereCoords *sphere_coords,
                                             gdouble theta,
                                             gdouble phi);

Object Hierarchy


  GObject
   +----GtkObject
         +----GwySphereCoords

Implemented Interfaces

GwySphereCoords implements GwySerializable and GwyWatchable.

Description

Details

struct GwySphereCoords

struct GwySphereCoords;


gwy_sphere_coords_new ()

GtkObject*  gwy_sphere_coords_new           (gdouble theta,
                                             gdouble phi);

Creates a new spherical coordinates.

theta: The angle from sphere north pole, in radians.
phi: The angle from sphere zero meridian, in radians.
Returns : New spherical coordinates as a GtkObject.

gwy_sphere_coords_get_theta ()

gdouble     gwy_sphere_coords_get_theta     (GwySphereCoords *sphere_coords);

Returns the theta angle i.e., angle from sphere north pole, in radians.

sphere_coords: A GwySphereCoords.
Returns : The theta angle.

gwy_sphere_coords_get_phi ()

gdouble     gwy_sphere_coords_get_phi       (GwySphereCoords *sphere_coords);

Returns the phi angle i.e., angle from sphere zero meridian, in radians.

sphere_coords: A GwySphereCoords.
Returns : The phi angle.

gwy_sphere_coords_set_value ()

void        gwy_sphere_coords_set_value     (GwySphereCoords *sphere_coords,
                                             gdouble theta,
                                             gdouble phi);

Sets the spherical coordinates to specified values.

Emits a "value_changed" signal on sphere_coords if the coordinates actually changed.

sphere_coords: A GwySphereCoords.
theta: The angle from sphere north pole, in radians.
phi: The angle from sphere zero meridian, in radians.