Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Proj::Pt2 Class Reference

#include <proj_pt.h>

Public Member Functions

 Pt2 ()
 
 Pt2 (double x, double y, double w)
 
 Pt2 (Geom::Point const &point)
 
 Pt2 (const char *coord_str)
 
double operator[] (unsigned int index) const
 
double & operator[] (unsigned int index)
 
bool operator== (Pt2 &rhs)
 
bool operator!= (Pt2 &rhs)
 
Pt2 operator+ (Pt2 &rhs) const
 
Pt2 operator- (Pt2 &rhs) const
 
Pt2 operator* (double const s) const
 
void normalize ()
 
Geom::Point affine ()
 
bool is_finite ()
 
char * coord_string ()
 
void print (char const *s) const
 

Private Attributes

double pt [3]
 

Detailed Description

Definition at line 24 of file proj_pt.h.

Constructor & Destructor Documentation

◆ Pt2() [1/4]

Proj::Pt2::Pt2 ( )
inline

Definition at line 26 of file proj_pt.h.

References pt.

◆ Pt2() [2/4]

Proj::Pt2::Pt2 ( double  x,
double  y,
double  w 
)
inline

Definition at line 27 of file proj_pt.h.

References pt, and w.

◆ Pt2() [3/4]

Proj::Pt2::Pt2 ( Geom::Point const &  point)
inline

Definition at line 28 of file proj_pt.h.

References pt, Geom::X, and Geom::Y.

◆ Pt2() [4/4]

Proj::Pt2::Pt2 ( const char *  coord_str)

Definition at line 20 of file proj_pt.cpp.

References pt.

Member Function Documentation

◆ affine()

◆ coord_string()

char * Proj::Pt2::coord_string ( )

◆ is_finite()

bool Proj::Pt2::is_finite ( )
inline

◆ normalize()

void Proj::Pt2::normalize ( )

Definition at line 42 of file proj_pt.cpp.

References pt.

Referenced by Proj::TransfMat3x4::normalize_column(), operator+(), operator-(), and operator==().

◆ operator!=()

bool Proj::Pt2::operator!= ( Pt2 rhs)
inline

Definition at line 47 of file proj_pt.h.

◆ operator*()

Pt2 Proj::Pt2::operator* ( double const  s) const
inline

Definition at line 73 of file proj_pt.h.

References result.

◆ operator+()

Pt2 Proj::Pt2::operator+ ( Pt2 rhs) const
inline

Definition at line 53 of file proj_pt.h.

References normalize(), pt, and result.

◆ operator-()

Pt2 Proj::Pt2::operator- ( Pt2 rhs) const
inline

Definition at line 63 of file proj_pt.h.

References normalize(), pt, and result.

◆ operator==()

bool Proj::Pt2::operator== ( Pt2 rhs)
inline

Definition at line 40 of file proj_pt.h.

References Proj::epsilon, normalize(), and pt.

◆ operator[]() [1/2]

double & Proj::Pt2::operator[] ( unsigned int  index)
inline

Definition at line 35 of file proj_pt.h.

References index, and pt.

◆ operator[]() [2/2]

double Proj::Pt2::operator[] ( unsigned int  index) const
inline

Definition at line 31 of file proj_pt.h.

References index, Geom::infinity(), and pt.

◆ print()

void Proj::Pt2::print ( char const *  s) const
inline

Definition at line 86 of file proj_pt.h.

References pt.

Referenced by Box3D::VanishingPoint::printPt().

Member Data Documentation

◆ pt

double Proj::Pt2::pt[3]
private

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