GwySphereCoords

GwySphereCoords — Spherical coordinates

Synopsis




            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);

Object Hierarchy


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

Implemented Interfaces

GwySphereCoords implements GwySerializable and GwyWatchable.

Description

Details

GwySphereCoords

typedef struct _GwySphereCoords GwySphereCoords;

Warning

GwySphereCoords is deprecated and should not be used in newly-written code.


GwySphereCoordsClass

typedef struct {
    GtkObjectClass parent_class;

    void (*value_changed)(GwySphereCoords *sphere_coords);
} GwySphereCoordsClass;

Warning

GwySphereCoordsClass is deprecated and should not be used in newly-written code.


gwy_sphere_coords_new ()

GtkObject*  gwy_sphere_coords_new           (gdouble theta,
                                             gdouble phi);

Warning

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.

gwy_sphere_coords_get_theta ()

gdouble     gwy_sphere_coords_get_theta     (GwySphereCoords *sphere_coords);

Warning

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.

gwy_sphere_coords_get_phi ()

gdouble     gwy_sphere_coords_get_phi       (GwySphereCoords *sphere_coords);

Warning

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.

gwy_sphere_coords_set_value ()

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

Warning

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.