Omnidome
Fulldome Mapping Software Toolkit
|
polar 3D vector defined by th two angles phi, theta and a radial distance More...
#include <PolarVec.h>
Public Member Functions | |
PolarVec () | |
default constructor More... | |
PolarVec (const QVector3D &) | |
Construct from QVector3D. More... | |
PolarVec (const QVector4D &) | |
Construct from QVector4D. More... | |
PolarVec (Angle _longitude, Angle _latitude, qreal _radius) | |
Construct from longitude angle, latitude angle and radius. More... | |
const PolarVec & | operator= (const QVector3D &) |
Assign from QVector3D. More... | |
operator QVector3D () const | |
QVector3D cast operator. More... | |
operator QVector4D () const | |
QVector4D cast operator. More... | |
const PolarVec & | operator+= (const PolarVec &) |
Increase by other PolarVec. More... | |
qreal | x () const |
Return x value (by converting to QVector3D internally) More... | |
qreal | y () const |
Return y value (by converting to QVector3D internally) More... | |
qreal | z () const |
Return z value (by converting to QVector3D internally) More... | |
QVector3D | vec () const |
Return converted QVector3D. More... | |
QVector3D | normalized () const |
Returns normalized QVector3D. More... | |
Angle | longitude () const |
Return longitudinal angle. More... | |
void | setLongitude (Angle) |
Set longitudinal angle. More... | |
Angle | latitude () const |
Return latitudinal angle. More... | |
void | setLatitude (Angle) |
Set latitudinal angle. More... | |
qreal | radius () const |
Return radius. More... | |
void | setRadius (qreal) |
Set radius. More... | |
void | toStream (QDataStream &) const |
Write transformation to stream. More... | |
void | fromStream (QDataStream &) |
Read transformation from stream. More... | |
Private Attributes | |
Angle | longitude_ |
Angle | latitude_ |
qreal | radius_ |
Friends | |
bool | operator== (PolarVec const &, PolarVec const &) |
Test for equality. More... | |
polar 3D vector defined by th two angles phi, theta and a radial distance
omni::geometry::PolarVec::PolarVec | ( | const QVector3D & | _vec | ) |
Construct from QVector3D.
omni::geometry::PolarVec::PolarVec | ( | const QVector4D & | _vec | ) |
Construct from QVector4D.
Construct from longitude angle, latitude angle and radius.
void omni::geometry::PolarVec::fromStream | ( | QDataStream & | _is | ) |
Read transformation from stream.
Angle omni::geometry::PolarVec::latitude | ( | ) | const |
Return latitudinal angle.
Angle omni::geometry::PolarVec::longitude | ( | ) | const |
Return longitudinal angle.
QVector3D omni::geometry::PolarVec::normalized | ( | ) | const |
omni::geometry::PolarVec::operator QVector3D | ( | ) | const |
QVector3D cast operator.
omni::geometry::PolarVec::operator QVector4D | ( | ) | const |
Increase by other PolarVec.
const PolarVec & omni::geometry::PolarVec::operator= | ( | const QVector3D & | _vec | ) |
Assign from QVector3D.
qreal omni::geometry::PolarVec::radius | ( | ) | const |
Return radius.
void omni::geometry::PolarVec::setLatitude | ( | Angle | _latitude | ) |
Set latitudinal angle.
void omni::geometry::PolarVec::setLongitude | ( | Angle | _longitude | ) |
Set longitudinal angle.
void omni::geometry::PolarVec::setRadius | ( | qreal | _radius | ) |
Set radius.
void omni::geometry::PolarVec::toStream | ( | QDataStream & | _os | ) | const |
Write transformation to stream.
QVector3D omni::geometry::PolarVec::vec | ( | ) | const |
qreal omni::geometry::PolarVec::x | ( | ) | const |
qreal omni::geometry::PolarVec::y | ( | ) | const |
qreal omni::geometry::PolarVec::z | ( | ) | const |
Test for equality.
|
private |
|
private |
|
private |