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 107 of file specctra.h.

Constructor & Destructor Documentation

◆ POINT() [1/2]

DSN::POINT::POINT ( )
inline

Definition at line 112 of file specctra.h.

References x, and y.

Referenced by operator!=(), operator+=(), operator=(), and operator==().

◆ POINT() [2/2]

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

Definition at line 114 of file specctra.h.

References x, and y.

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 149 of file specctra.h.

References x, and y.

Referenced by DSN::mapPt().

◆ 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 165 of file specctra.h.

References OUTPUTFORMATTER::Print(), x, and y.

◆ operator!=()

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

Definition at line 124 of file specctra.h.

References POINT().

◆ operator+=()

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

Definition at line 129 of file specctra.h.

References POINT(), x, and y.

◆ operator=()

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

Definition at line 136 of file specctra.h.

References POINT(), x, and y.

◆ operator==()

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

Definition at line 119 of file specctra.h.

References POINT(), x, and y.

Member Data Documentation

◆ x

◆ y


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