w32tex About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.   Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)
Point Class Reference

`#include <ubidiimp.h>`

## Public Member Functions

Point ()

Point (double xx, double yy)

Point (const Point &p, double dx, double dy)

double squared_length () const noexcept

double length () const noexcept

double magnitude () const noexcept

double angle () const noexcept

void shift (double dx, double dy)

Point shifted (double dx, double dy) const noexcept

Point rotated (double) const noexcept

Point normal () const noexcept

bool on_line (const Point &, const Point &, double) const noexcept

bool on_segment (const Point &, const Point &, double) const noexcept

Pointoperator+= (const Point &) noexcept

Pointoperator-= (const Point &) noexcept

Pointoperator*= (double) noexcept

Pointoperator/= (double) noexcept

Point (float x, float y)

Point ()

float x () const

float y () const

bool operator== (const Point &p2) const

bool operator!= (const Point &p2) const

Point operator+ (const Point &p) const

const Pointoperator+= (const Point &p)

Point operator* (float f) const

Point transform (const float matrix[6]) const

## Static Public Member Functions

static double distance (const Point &, const Point &) noexcept

static double dot (const Point &, const Point &) noexcept

static Point midpoint (const Point &, const Point &) noexcept

word x

word y

int32_t pos

int32_t flag

double x

double y

float x_

float y_

## Friends

ostream & operator<< (ostream &out, const Point &p)

## Detailed Description

Definition at line 100 of file picttoppm.c.

## ◆ Point() [1/5]

 Point::Point ( )
inline

Definition at line 11 of file point.hh.

Referenced by normal(), operator-(), shifted(), and transform().

## ◆ Point() [2/5]

 Point::Point ( double xx, double yy )
inline

Definition at line 12 of file point.hh.

## ◆ Point() [3/5]

 Point::Point ( const Point & p, double dx, double dy )
inline

Definition at line 14 of file point.hh.

## ◆ Point() [4/5]

 Point::Point ( float x, float y )
inline

Definition at line 88 of file drvbase.h.

## ◆ Point() [5/5]

 Point::Point ( )
inline

Definition at line 89 of file drvbase.h.

## ◆ angle()

 double Point::angle ( ) const
inlinenoexcept

Definition at line 70 of file point.hh.

References atan2(), x, and y.

## ◆ distance()

 double Point::distance ( const Point & a, const Point & b )
inlinestaticnoexcept

Definition at line 174 of file point.hh.

References a, b, and length().

Referenced by chord_length_parameterize(), fit0(), and generate_bezier().

## ◆ dot()

 double Point::dot ( const Point & a, const Point & b )
inlinestaticnoexcept

Definition at line 180 of file point.hh.

References a, and b.

Referenced by generate_bezier(), and newton_raphson_root_find().

## ◆ length()

 double Point::length ( ) const
inlinenoexcept

Definition at line 58 of file point.hh.

References sqrt(), x, and y.

Referenced by distance(), magnitude(), and normal().

## ◆ magnitude()

 double Point::magnitude ( ) const
inlinenoexcept

Definition at line 64 of file point.hh.

References length().

## ◆ midpoint()

 Point Point::midpoint ( const Point & a, const Point & b )
staticnoexcept

Definition at line 30 of file point.cc.

References a, and b.

Referenced by Bezier::halve().

## ◆ normal()

 Point Point::normal ( ) const
inlinenoexcept

Definition at line 82 of file point.hh.

References cutout::l, length(), Point(), x, and y.

Referenced by fit0().

## ◆ on_line()

 bool Point::on_line ( const Point & a, const Point & b, double tolerance ) const
noexcept

Definition at line 36 of file point.cc.

References a, b, c, d, tolerance, cordic::x, and y.

## ◆ on_segment()

 bool Point::on_segment ( const Point & a, const Point & b, double t ) const
noexcept

Definition at line 44 of file point.cc.

References a, b, c, fabs, if, cordic::x, and y.

## ◆ operator!=()

 bool Point::operator!= ( const Point & p2 ) const
inline

Definition at line 97 of file drvbase.h.

References p2.

## ◆ operator*()

 Point Point::operator* ( float f ) const
inline

Definition at line 102 of file drvbase.h.

References f.

## ◆ operator*=()

 Point & Point::operator*= ( double d )
inlinenoexcept

Definition at line 105 of file point.hh.

References d, x, and y.

## ◆ operator+()

 Point Point::operator+ ( const Point & p ) const
inline

Definition at line 100 of file drvbase.h.

References p.

## ◆ operator+=() [1/2]

 Point & Point::operator+= ( const Point & p )
inlinenoexcept

Definition at line 89 of file point.hh.

References p, x, and y.

## ◆ operator+=() [2/2]

 const Point& Point::operator+= ( const Point & p )
inline

Definition at line 101 of file drvbase.h.

References p.

## ◆ operator-=()

 Point & Point::operator-= ( const Point & p )
inlinenoexcept

Definition at line 97 of file point.hh.

References p, x, and y.

## ◆ operator/=()

 Point & Point::operator/= ( double d )
inlinenoexcept

Definition at line 113 of file point.hh.

References d, x, and y.

## ◆ operator==()

 bool Point::operator== ( const Point & p2 ) const
inline

Definition at line 94 of file drvbase.h.

References p2.

## ◆ rotated()

 Point Point::rotated ( double rotation ) const
noexcept

Definition at line 22 of file point.cc.

References cordic::angle, cos(), length, r, rotation, and sin().

## ◆ shift()

 void Point::shift ( double dx, double dy )
inline

Definition at line 26 of file point.hh.

References x, and y.

## ◆ shifted()

 Point Point::shifted ( double dx, double dy ) const
inlinenoexcept

Definition at line 76 of file point.hh.

References Point(), x, and y.

## ◆ squared_length()

 double Point::squared_length ( ) const
inlinenoexcept

Definition at line 52 of file point.hh.

References x, and y.

## ◆ transform()

 Point Point::transform ( const float matrix[6] ) const

Definition at line 1572 of file drvbase.cpp.

References matrix(), Point(), x_, and y_.

## ◆ x()

 float Point::x ( ) const
inline

Definition at line 92 of file drvbase.h.

Referenced by pdf-org.Ref::__str__(), and pdf.Ref::__str__().

## ◆ y()

 float Point::y ( ) const
inline

Definition at line 93 of file drvbase.h.

## ◆ operator<<

 ostream& operator<< ( ostream & out, const Point & p )
friend

Definition at line 111 of file drvbase.h.

## ◆ flag

 int32_t Point::flag

Definition at line 244 of file ubidiimp.h.

## ◆ pos

 int32_t Point::pos

Definition at line 243 of file ubidiimp.h.

## ◆ x [2/2]

 double Point::x

Definition at line 8 of file point.hh.

Referenced by pdf-org.Ref::__str__(), and pdf.Ref::__str__().

## ◆ y [2/2]

 double Point::y

Definition at line 9 of file point.hh.

## ◆ y_

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