KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DSN::POINT Struct Reference

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
 
POINToperator+= (const POINT &other)
 
POINToperator= (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ POINT() [1/2]

DSN::POINT::POINT ( )
inline

Definition at line 106 of file specctra.h.

References x, and y.

◆ POINT() [2/2]

DSN::POINT::POINT ( double  aX,
double  aY 
)
inline

Definition at line 108 of file specctra.h.

Member Function Documentation

◆ FixNegativeZero()

void DSN::POINT::FixNegativeZero ( )
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.

References x, and y.

Referenced by DSN::mapPt(), DSN::QARC::SetCenter(), DSN::RECTANGLE::SetCorners(), DSN::QARC::SetEnd(), DSN::QARC::SetStart(), DSN::PIN::SetVertex(), and DSN::PLACE::SetVertex().

◆ Format()

void DSN::POINT::Format ( OUTPUTFORMATTER out,
int  nestLevel 
) const
inline

Write this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.

Parameters
outThe formatter to write to.
nestLevelA multiple of the number of spaces to precede the output with.
Exceptions
IO_ERRORif 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.

◆ operator!=()

bool DSN::POINT::operator!= ( const POINT other) const
inline

Definition at line 118 of file specctra.h.

◆ operator+=()

POINT & DSN::POINT::operator+= ( const POINT other)
inline

Definition at line 123 of file specctra.h.

References x, and y.

◆ operator=()

POINT & DSN::POINT::operator= ( const POINT other)
inline

Definition at line 130 of file specctra.h.

References x, and y.

◆ operator==()

bool DSN::POINT::operator== ( const POINT other) const
inline

Definition at line 113 of file specctra.h.

References x, and y.

Member Data Documentation

◆ x

◆ y


The documentation for this struct was generated from the following file: