spherical_coordinates Class Reference

Coordinates are expressed as radius, azimuth angle, and elevation angle. More...

#include <grasp_coordinates.h>

Inheritance diagram for spherical_coordinates:
Inheritance graph
[legend]

List of all members.

Public Member Functions

double distanceTo (spherical_coordinates) const
cartesian_coordinates get_pos_cartesian () const
cylindrical_coordinates get_pos_cylindrical () const
spherical_coordinates get_pos_spherical () const
cartesian_coordinates get_vec_cartesian (spherical_coordinates from) const
cylindrical_coordinates get_vec_cylindrical (spherical_coordinates from) const
spherical_coordinates get_vec_spherical (spherical_coordinates from) const
 spherical_coordinates ()
 spherical_coordinates (vec3 v)
 spherical_coordinates (const spherical_coordinates &cc)
 spherical_coordinates (spherical_coordinates *cc)
 spherical_coordinates (double r, double teta, double phi)

Detailed Description

Coordinates are expressed as radius, azimuth angle, and elevation angle.

This class allows conversion to other coordinate systems.

Definition at line 160 of file grasp_coordinates.h.


Constructor & Destructor Documentation

spherical_coordinates::spherical_coordinates ( double  r,
double  teta,
double  phi 
)

Initializes the coordinates with the values R , teta , phi .

Definition at line 484 of file grasp_coordinates.cpp.

spherical_coordinates::spherical_coordinates ( spherical_coordinates cc  ) 

Copies the values from cc.

Definition at line 492 of file grasp_coordinates.cpp.

spherical_coordinates::spherical_coordinates ( const spherical_coordinates cc  ) 

Copies the values from cc.

Definition at line 500 of file grasp_coordinates.cpp.

spherical_coordinates::spherical_coordinates ( vec3  v  ) 

Initializes the coordinates with the values R , phi , z .

Definition at line 508 of file grasp_coordinates.cpp.

spherical_coordinates::spherical_coordinates (  ) 

Initializes the coordinates with the values R , phi , z .

Definition at line 516 of file grasp_coordinates.cpp.


Member Function Documentation

double spherical_coordinates::distanceTo ( spherical_coordinates  to  )  const

Definition at line 616 of file grasp_coordinates.cpp.

cartesian_coordinates spherical_coordinates::get_pos_cartesian (  )  const [virtual]

Converts this to cartesian coordinates.

Reimplemented from coordinates.

Definition at line 525 of file grasp_coordinates.cpp.

cylindrical_coordinates spherical_coordinates::get_pos_cylindrical (  )  const [virtual]

Converts this to cylindrical coordinates.

Reimplemented from coordinates.

Definition at line 538 of file grasp_coordinates.cpp.

spherical_coordinates spherical_coordinates::get_pos_spherical (  )  const [virtual]

Returns a copy of this.

Reimplemented from coordinates.

Definition at line 551 of file grasp_coordinates.cpp.

cartesian_coordinates spherical_coordinates::get_vec_cartesian ( spherical_coordinates  from  )  const

Definition at line 560 of file grasp_coordinates.cpp.

cylindrical_coordinates spherical_coordinates::get_vec_cylindrical ( spherical_coordinates  from  )  const

Definition at line 580 of file grasp_coordinates.cpp.

spherical_coordinates spherical_coordinates::get_vec_spherical ( spherical_coordinates  from  )  const

Returns a copy of this.

Definition at line 596 of file grasp_coordinates.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:25 2012