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 101 of file specctra.h.
|
inline |
Definition at line 106 of file specctra.h.
|
inline |
Definition at line 108 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 143 of file specctra.h.
Referenced by DSN::mapPt(), DSN::QARC::SetCenter(), DSN::RECTANGLE::SetCorners(), DSN::QARC::SetEnd(), DSN::QARC::SetStart(), DSN::PIN::SetVertex(), and DSN::PLACE::SetVertex().
|
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 159 of file specctra.h.
References OUTPUTFORMATTER::Print(), x, and y.
|
inline |
Definition at line 118 of file specctra.h.
Definition at line 123 of file specctra.h.
Definition at line 130 of file specctra.h.
|
inline |
Definition at line 113 of file specctra.h.
double DSN::POINT::x |
Definition at line 103 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::RECTANGLE::Format(), DSN::CIRCLE::Format(), DSN::QARC::Format(), DSN::PLACE::Format(), DSN::PIN::Format(), DSN::BOUNDARY::GetCorners(), DSN::SPECCTRA_DB::makePADSTACK(), DSN::mapPt(), operator+=(), operator=(), operator==(), and POINT().
double DSN::POINT::y |
Definition at line 104 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::RECTANGLE::Format(), DSN::CIRCLE::Format(), DSN::QARC::Format(), DSN::PLACE::Format(), DSN::PIN::Format(), DSN::BOUNDARY::GetCorners(), DSN::SPECCTRA_DB::makePADSTACK(), DSN::mapPt(), operator+=(), operator=(), operator==(), and POINT().