Class Polar

Index Home MAE > MAE Architecture > MAE Data Types > Class Index > Class Polar

Public Properties
Public Methods
inline double getRadius() const
inline double getTheta() const
inline double getPhi() const
double getX() const
double getY() const
double getZ() const
inline Point getPoint() const
inline double getFocusX() const
inline double getFocusY() const
inline double getFocusZ() const
inline Point getFocus() const
inline void setPoint(p)
inline void setRadius(radius)
inline void setTheta(newTheta)
inline void setPhi(newPhi)
inline void setPolarFromPoint(p)
inline void setPolarFromPoint(x, y, z)
inline void rotateXY(angle)
Polar(newr, newtheta, newphi)
Polar(p, newr, newtheta, newphi)
Polar(p1, p2)
Polar(pt)
Polar(p)
void set(newr, newtheta, newphi)
void normalize()
static double normalize(radians)
inline bool same(p) const
inline bool equal(p) const
static Polar invalidPoint()
bool isInvalid() const
string toString() const

#include <Polar.h >

Super class: Point

Public Properties

double r

distance of ray

double theta

distance of ray

double phi

distance of ray

theta, theta

inclination

theta, phi

inclination

phi; phi

azimuth


Public Methods

inline double getRadius() const

basic GET functions

inline double getTheta() const

inline double getPhi() const

double getX() const

cartesian equivalents

double getY() const

double getZ() const

inline Point getPoint() const

inline double getFocusX() const

inline double getFocusY() const

inline double getFocusZ() const

inline Point getFocus() const

inline void setPoint(p)

Point p


basic SET functions

inline void setRadius(radius)

double radius


inline void setTheta(newTheta)

double newTheta


inline void setPhi(newPhi)

double newPhi


inline void setPolarFromPoint(p)

Point p


inline void setPolarFromPoint(x, y, z)

double x

double y

double z

Default value: 0


inline void rotateXY(angle)

double angle


rotate the point around the z-axis by rotation angle

Polar(newr, newtheta, newphi)

double newr

Default value: 0

double newtheta

Default value: 0

double newphi

Default value: 0


instantiate Polar

Polar(p, newr, newtheta, newphi)

const Point p

double newr

Default value: 0

double newtheta

Default value: 0

double newphi

Default value: 0.


instantiate Polar

Polar(p1, p2)

const Point p1

const Point p2


instantiate Points

Polar(pt)

string pt


instantiate Polar

Polar(p)

const Polar& p


instantiate Point

void set(newr, newtheta, newphi)

double newr

Default value: 0

double newtheta

Default value: 0

double newphi

Default value: 0.


void normalize()

static double normalize(radians)

double radians


inline bool same(p) const

const Polar& p


true if both points are the same, within tolerance

inline bool equal(p) const

const Polar& p


true if both points are equal

static Polar invalidPoint()

returns an invalid point

bool isInvalid() const

test for invalidity

string toString() const