#include <CoordinateSets.h>
Public Member Functions | |
const T & | phi () const |
Polar2Cartesian (const T &r, const T &phi) | |
Construct from radius and polar angle. More... | |
const T & | r () const |
T | x () const |
T | y () const |
Private Attributes | |
T | phi_ |
T | r_ |
Converts polar 2D coordinates to cartesian coordinates. Note: Spherical coordinates (also sometimes called Polar 3D coordinates) are handled by class Spherical2Cartesian
Definition at line 14 of file CoordinateSets.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 23 of file CoordinateSets.h.
References funct::cos(), Geom::Polar2Cartesian< T >::phi_, and Geom::Polar2Cartesian< T >::r_.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), python.Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), python.Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and python.Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
inline |
Definition at line 24 of file CoordinateSets.h.
References Geom::Polar2Cartesian< T >::phi_, Geom::Polar2Cartesian< T >::r_, and funct::sin().
Referenced by svgfig.Ellipse::__repr__(), python.Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), python.Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and python.Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
private |
Definition at line 28 of file CoordinateSets.h.
Referenced by Geom::Polar2Cartesian< T >::phi(), Geom::Polar2Cartesian< T >::x(), and Geom::Polar2Cartesian< T >::y().
|
private |
Definition at line 27 of file CoordinateSets.h.
Referenced by Geom::Polar2Cartesian< T >::r(), Geom::Polar2Cartesian< T >::x(), and Geom::Polar2Cartesian< T >::y().