Fawkes API Fawkes Development Version
firevision::MirrorCalibTool::CartesianPoint Class Reference

A cartesian point is a 2d point which can have negative X and Y coords. More...

Inheritance diagram for firevision::MirrorCalibTool::CartesianPoint:

Public Member Functions

 CartesianPoint (PolarAngle phi, PolarRadius length)
 Constructor. More...
 
 CartesianPoint (int x, int y)
 Constructor. More...
 
CartesianPoint rotate (PolarAngle rotate_phi) const
 Rotates the vector to the point counter-clockwise and returns the vector to the point. More...
 
- Public Member Functions inherited from firevision::MirrorCalibTool::Point
 Point (int x, int y)
 Constructor. More...
 
 Point (const Point &p)
 Copy constructor. More...
 
PolarRadius length () const
 Length of the vector the point. More...
 
PolarAngle atan () const
 Atan(y, x) of the point. More...
 
Pointoperator= (const Point &p)
 Assignment operator. More...
 

Additional Inherited Members

- Public Attributes inherited from firevision::MirrorCalibTool::Point
int x
 X coordinate. More...
 
int y
 Y coordinate. More...
 

Detailed Description

A cartesian point is a 2d point which can have negative X and Y coords.

Definition at line 272 of file mirror_calib.cpp.

Constructor & Destructor Documentation

◆ CartesianPoint() [1/2]

firevision::MirrorCalibTool::CartesianPoint::CartesianPoint ( PolarAngle  phi,
PolarRadius  length 
)
inline

Constructor.

Parameters
phi
length

Definition at line 278 of file mirror_calib.cpp.

Referenced by rotate().

◆ CartesianPoint() [2/2]

firevision::MirrorCalibTool::CartesianPoint::CartesianPoint ( int  x,
int  y 
)
inline

Constructor.

Parameters
x
y

Definition at line 285 of file mirror_calib.cpp.

Member Function Documentation

◆ rotate()

CartesianPoint firevision::MirrorCalibTool::CartesianPoint::rotate ( PolarAngle  rotate_phi) const
inline

Rotates the vector to the point counter-clockwise and returns the vector to the point.

Parameters
rotate_phi
Returns
Counter-clockwise rotated point.

Definition at line 294 of file mirror_calib.cpp.

References firevision::MirrorCalibTool::Point::atan(), CartesianPoint(), firevision::MirrorCalibTool::Point::length(), firevision::MirrorCalibTool::Point::x, and firevision::MirrorCalibTool::Point::y.

Referenced by firevision::MirrorCalibTool::CartesianImage::to_cartesian(), and firevision::MirrorCalibTool::CartesianImage::to_pixel().


The documentation for this class was generated from the following file: