KiCad PCB EDA Suite
SGPOINT Class Reference

#include <sg_base.h>

Public Member Functions

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

Public Attributes

double x
 
double y
 
double z
 

Detailed Description

Definition at line 67 of file sg_base.h.

Constructor & Destructor Documentation

SGPOINT::SGPOINT ( )

Definition at line 190 of file sg_base.cpp.

References x, y, and z.

191 {
192  x = 0.0;
193  y = 0.0;
194  z = 0.0;
195  return;
196 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72
SGPOINT::SGPOINT ( double  aXVal,
double  aYVal,
double  aZVal 
)

Definition at line 199 of file sg_base.cpp.

References x, y, and z.

200 {
201  x = aXVal;
202  y = aYVal;
203  z = aZVal;
204 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

Member Function Documentation

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

Definition at line 207 of file sg_base.cpp.

References x, y, and z.

208 {
209  x = aXVal;
210  y = aYVal;
211  z = aZVal;
212  return;
213 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72
void SGPOINT::GetPoint ( SGPOINT aPoint)

Definition at line 216 of file sg_base.cpp.

References x, y, and z.

217 {
218  x = aPoint.x;
219  y = aPoint.y;
220  z = aPoint.z;
221  return;
222 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72
void SGPOINT::GetPoint ( SGPOINT aPoint)

Definition at line 225 of file sg_base.cpp.

References x, y, and z.

226 {
227  if( NULL == aPoint )
228  {
229  #ifdef DEBUG
230  std::ostringstream ostr;
231  ostr << __FILE__ << ": " << __FUNCTION__ << ": " << __LINE__ << "\n";
232  ostr << " * [BUG] NULL pointer passed for aPoint";
233  wxLogTrace( MASK_3D_SG, "%s\n", ostr.str().c_str() );
234  #endif
235 
236  return;
237  }
238 
239  x = aPoint->x;
240  y = aPoint->y;
241  z = aPoint->z;
242  return;
243 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72
void SGPOINT::SetPoint ( double  aXVal,
double  aYVal,
double  aZVal 
)

Definition at line 246 of file sg_base.cpp.

References x, y, and z.

247 {
248  x = aXVal;
249  y = aYVal;
250  z = aZVal;
251  return;
252 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72
void SGPOINT::SetPoint ( const SGPOINT aPoint)

Definition at line 255 of file sg_base.cpp.

References x, y, and z.

256 {
257  x = aPoint.x;
258  y = aPoint.y;
259  z = aPoint.z;
260  return;
261 }
double x
Definition: sg_base.h:70
double y
Definition: sg_base.h:71
double z
Definition: sg_base.h:72

Member Data Documentation


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