![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwySphereCoords — Spherical coordinates
struct GwySphereCoords; struct GwySphereCoordsClass; 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);
GObject +----GtkObject +----GwySphereCoords
GwySphereCoords implements GwySerializable and GwyWatchable.
struct GwySphereCoordsClass { GtkObjectClass parent_class; void (*value_changed)(GwySphereCoords *sphere_coords); };
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. |
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. |
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. |
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. |
<< GwyGradSphere | Widget Utilities >> |