KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SGVECTOR Class Reference

#include <sg_base.h>

Public Member Functions

 SGVECTOR ()
 
 SGVECTOR (double aXVal, double aYVal, double aZVal)
 
void GetVector (double &aXVal, double &aYVal, double &aZVal) const noexcept
 
void SetVector (double aXVal, double aYVal, double aZVal)
 
void SetVector (const SGVECTOR &aVector)
 
SGVECTORoperator= (const SGVECTOR &source) noexcept
 

Private Member Functions

void normalize (void) noexcept
 

Private Attributes

double vx
 
double vy
 
double vz
 

Detailed Description

Definition at line 87 of file sg_base.h.

Constructor & Destructor Documentation

◆ SGVECTOR() [1/2]

SGVECTOR::SGVECTOR ( )

Definition at line 208 of file sg_base.cpp.

References vx, vy, and vz.

◆ SGVECTOR() [2/2]

SGVECTOR::SGVECTOR ( double  aXVal,
double  aYVal,
double  aZVal 
)

Definition at line 216 of file sg_base.cpp.

References normalize(), vx, vy, and vz.

Member Function Documentation

◆ GetVector()

void SGVECTOR::GetVector ( double &  aXVal,
double &  aYVal,
double &  aZVal 
) const
noexcept

◆ normalize()

void SGVECTOR::normalize ( void  )
privatenoexcept

Definition at line 248 of file sg_base.cpp.

Referenced by SetVector(), and SGVECTOR().

◆ operator=()

SGVECTOR & SGVECTOR::operator= ( const SGVECTOR source)
noexcept

Definition at line 270 of file sg_base.cpp.

References vx.

◆ SetVector() [1/2]

void SGVECTOR::SetVector ( const SGVECTOR aVector)

Definition at line 242 of file sg_base.cpp.

References GetVector(), vx, vy, and vz.

◆ SetVector() [2/2]

void SGVECTOR::SetVector ( double  aXVal,
double  aYVal,
double  aZVal 
)

Definition at line 233 of file sg_base.cpp.

References normalize(), vx, vy, and vz.

Referenced by EXPORTER_PCB_VRML::create_vrml_shell(), S3D::ReadVector(), and vrmlToSG().

Member Data Documentation

◆ vx

double SGVECTOR::vx
private

Definition at line 92 of file sg_base.h.

Referenced by operator=(), SetVector(), and SGVECTOR().

◆ vy

double SGVECTOR::vy
private

Definition at line 93 of file sg_base.h.

Referenced by SetVector(), and SGVECTOR().

◆ vz

double SGVECTOR::vz
private

Definition at line 94 of file sg_base.h.

Referenced by SetVector(), and SGVECTOR().


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