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 102 of file specctra.h.
|
inline |
Definition at line 107 of file specctra.h.
|
inline |
Definition at line 109 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 144 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 160 of file specctra.h.
References OUTPUTFORMATTER::Print(), x, and y.
|
inline |
Definition at line 119 of file specctra.h.
Definition at line 124 of file specctra.h.
Definition at line 131 of file specctra.h.
|
inline |
Definition at line 114 of file specctra.h.
double DSN::POINT::x |
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().
double DSN::POINT::y |
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::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().