![]() |
![]() |
![]() |
Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwySphereCoordsGwySphereCoords — Spherical coordinates |
GwySphereCoords; 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);
typedef struct _GwySphereCoords GwySphereCoords;
GwySphereCoords is deprecated and should not be used in newly-written code.
typedef struct { GtkObjectClass parent_class; void (*value_changed)(GwySphereCoords *sphere_coords); } GwySphereCoordsClass;
GwySphereCoordsClass is deprecated and should not be used in newly-written code.
GtkObject* gwy_sphere_coords_new (gdouble theta, gdouble phi);
gwy_sphere_coords_new is deprecated and should not be used in newly-written code.
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);
gwy_sphere_coords_get_theta is deprecated and should not be used in newly-written code.
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);
gwy_sphere_coords_get_phi is deprecated and should not be used in newly-written code.
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);
gwy_sphere_coords_set_value is deprecated and should not be used in newly-written code.
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 >> |