|
KiCad PCB EDA Suite
|
A point in the SPECCTRA DSN coordinate system. More...
#include <specctra.h>
Public Member Functions | |
| POINT () | |
| POINT (double aX, double aY) | |
| bool | operator== (const POINT &other) const |
| bool | operator!= (const POINT &other) const |
| POINT & | operator+= (const POINT &other) |
| POINT & | operator= (const POINT &other) |
| void | FixNegativeZero () |
| Change negative zero to positive zero in the IEEE floating point storage format. | |
| void | Format (OUTPUTFORMATTER *out, int nestLevel) const |
| Write this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format. | |
Public Attributes | |
| double | x |
| double | y |
A point in the SPECCTRA DSN coordinate system.
It can also be used to hold a distance (vector really) from some origin.
Definition at line 103 of file specctra.h.
|
inline |
Definition at line 108 of file specctra.h.
Referenced by operator!=(), operator+=(), operator=(), and operator==().
|
inline |
Definition at line 110 of file specctra.h.
|
inline |
Change negative zero to positive zero in the IEEE floating point storage format.
Basically turns off the sign bit if the mantissa and exponent say the value is otherwise zero.
Definition at line 145 of file specctra.h.
Referenced by DSN::mapPt().
|
inline |
Write this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.
| out | The formatter to write to. |
| nestLevel | A multiple of the number of spaces to precede the output with. |
| IO_ERROR | if a system error writing the output, such as a full disk. |
Definition at line 161 of file specctra.h.
References OUTPUTFORMATTER::Print(), x, and y.
|
inline |
Definition at line 120 of file specctra.h.
References POINT().
Definition at line 125 of file specctra.h.
Definition at line 132 of file specctra.h.
|
inline |
Definition at line 115 of file specctra.h.
| double DSN::POINT::x |
Definition at line 105 of file specctra.h.
Referenced by DSN::SPECCTRA_DB::doCIRCLE(), DSN::SPECCTRA_DB::doPATH(), DSN::SPECCTRA_DB::doPIN(), DSN::SPECCTRA_DB::doPLACE(), DSN::SPECCTRA_DB::doQARC(), DSN::SPECCTRA_DB::doRECTANGLE(), DSN::SPECCTRA_DB::doWIRE_VIA(), FixNegativeZero(), Format(), DSN::SPECCTRA_DB::makePADSTACK(), DSN::mapPt(), DSN::mapPt(), operator+=(), operator=(), operator==(), POINT(), and POINT().
| double DSN::POINT::y |
Definition at line 106 of file specctra.h.
Referenced by DSN::SPECCTRA_DB::doCIRCLE(), DSN::SPECCTRA_DB::doPATH(), DSN::SPECCTRA_DB::doPIN(), DSN::SPECCTRA_DB::doPLACE(), DSN::SPECCTRA_DB::doQARC(), DSN::SPECCTRA_DB::doRECTANGLE(), DSN::SPECCTRA_DB::doWIRE_VIA(), FixNegativeZero(), Format(), DSN::SPECCTRA_DB::makePADSTACK(), DSN::mapPt(), DSN::mapPt(), operator+=(), operator=(), operator==(), POINT(), and POINT().