KiCad PCB EDA Suite
SGPOINT Class Reference

#include <sg_base.h>

Public Member Functions

 SGPOINT ()
 
 SGPOINT (double aXVal, double aYVal, double aZVal) noexcept
 
void GetPoint (const double &aXVal, const double &aYVal, const double &aZVal) noexcept
 
void GetPoint (const SGPOINT &aPoint) noexcept
 
void GetPoint (const SGPOINT *aPoint) noexcept
 
void SetPoint (double aXVal, double aYVal, double aZVal) noexcept
 
void SetPoint (const SGPOINT &aPoint) noexcept
 

Public Attributes

double x
 
double y
 
double z
 

Detailed Description

Definition at line 67 of file sg_base.h.

Constructor & Destructor Documentation

◆ SGPOINT() [1/2]

SGPOINT::SGPOINT ( )

Definition at line 150 of file sg_base.cpp.

151 {
152  x = 0.0;
153  y = 0.0;
154  z = 0.0;
155 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

References x, y, and z.

◆ SGPOINT() [2/2]

SGPOINT::SGPOINT ( double  aXVal,
double  aYVal,
double  aZVal 
)
noexcept

Definition at line 158 of file sg_base.cpp.

159 {
160  x = aXVal;
161  y = aYVal;
162  z = aZVal;
163 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

Member Function Documentation

◆ GetPoint() [1/3]

void SGPOINT::GetPoint ( const double &  aXVal,
const double &  aYVal,
const double &  aZVal 
)
noexcept

Definition at line 166 of file sg_base.cpp.

167 {
168  x = aXVal;
169  y = aYVal;
170  z = aZVal;
171 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

◆ GetPoint() [2/3]

void SGPOINT::GetPoint ( const SGPOINT aPoint)
noexcept

Definition at line 174 of file sg_base.cpp.

175 {
176  x = aPoint.x;
177  y = aPoint.y;
178  z = aPoint.z;
179 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

◆ GetPoint() [3/3]

void SGPOINT::GetPoint ( const SGPOINT aPoint)
noexcept

Definition at line 182 of file sg_base.cpp.

183 {
184  wxCHECK_MSG( aPoint, /* void */, "NULL pointer passed for aPoint" );
185 
186  x = aPoint->x;
187  y = aPoint->y;
188  z = aPoint->z;
189 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

◆ SetPoint() [1/2]

void SGPOINT::SetPoint ( double  aXVal,
double  aYVal,
double  aZVal 
)
noexcept

Definition at line 192 of file sg_base.cpp.

193 {
194  x = aXVal;
195  y = aYVal;
196  z = aZVal;
197 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

◆ SetPoint() [2/2]

void SGPOINT::SetPoint ( const SGPOINT aPoint)
noexcept

Definition at line 200 of file sg_base.cpp.

201 {
202  x = aPoint.x;
203  y = aPoint.y;
204  z = aPoint.z;
205 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

Member Data Documentation

◆ x

◆ y

◆ z


The documentation for this class was generated from the following files: