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

#include <proj_pt.h>

Public Member Functions

 Pt3 ()
 
 Pt3 (double x, double y, double z, double w)
 
 Pt3 (const char *coord_str)
 
bool operator== (Pt3 &rhs)
 
Pt3 operator+ (Pt3 &rhs) const
 
Pt3 operator- (Pt3 &rhs) const
 
Pt3 operator* (double const s) const
 
double operator[] (unsigned int index) const
 
double & operator[] (unsigned int index)
 
void normalize ()
 
bool is_finite ()
 
char * coord_string ()
 
void print (char const *s) const
 

Private Attributes

double pt [4]
 

Detailed Description

Definition at line 93 of file proj_pt.h.

Constructor & Destructor Documentation

◆ Pt3() [1/3]

Proj::Pt3::Pt3 ( )
inline

Definition at line 95 of file proj_pt.h.

References pt.

◆ Pt3() [2/3]

Proj::Pt3::Pt3 ( double  x,
double  y,
double  z,
double  w 
)
inline

Definition at line 96 of file proj_pt.h.

References pt, and w.

◆ Pt3() [3/3]

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

Definition at line 67 of file proj_pt.cpp.

References pt.

Member Function Documentation

◆ coord_string()

char * Proj::Pt3::coord_string ( )

Definition at line 101 of file proj_pt.cpp.

References pt, and Inkscape::SVGOStringStream::str().

Referenced by SPBox3D::write().

◆ is_finite()

bool Proj::Pt3::is_finite ( )
inline

Definition at line 149 of file proj_pt.h.

References pt.

◆ normalize()

◆ operator*()

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

Definition at line 130 of file proj_pt.h.

References result.

◆ operator+()

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

Definition at line 110 of file proj_pt.h.

References normalize(), pt, and result.

◆ operator-()

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

Definition at line 120 of file proj_pt.h.

References normalize(), pt, and result.

◆ operator==()

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

Definition at line 99 of file proj_pt.h.

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

◆ operator[]() [1/2]

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

Definition at line 143 of file proj_pt.h.

References index, and pt.

◆ operator[]() [2/2]

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

Definition at line 139 of file proj_pt.h.

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

◆ print()

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

Definition at line 151 of file proj_pt.h.

References pt.

Member Data Documentation

◆ pt

double Proj::Pt3::pt[4]
private

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