mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
committed by
Mathew Sutcliffe
parent
229d7c6068
commit
978f3c88e5
@@ -5,97 +5,97 @@
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Math
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Concrete vector implementation
|
||||
*/
|
||||
class CVector3D : public CVector3DBase<CVector3D>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CVector3D() : CVector3DBase() {}
|
||||
|
||||
/*!
|
||||
* \brief Constructor by value
|
||||
* \param i
|
||||
* \param j
|
||||
* \param k
|
||||
*/
|
||||
CVector3D(double i, double j, double k) : CVector3DBase(i, j, k) {}
|
||||
|
||||
/*!
|
||||
* \brief Constructor by value
|
||||
* \param value
|
||||
*/
|
||||
explicit CVector3D(double value) : CVector3DBase(value) {}
|
||||
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param other
|
||||
*/
|
||||
CVector3D(const CVector3D &other) : CVector3DBase(other) {}
|
||||
|
||||
/*!
|
||||
* \brief i
|
||||
* \return
|
||||
*/
|
||||
double i() const
|
||||
namespace Math
|
||||
{
|
||||
return this->m_i;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief j
|
||||
* \return
|
||||
*/
|
||||
double j() const
|
||||
{
|
||||
return this->m_j;
|
||||
}
|
||||
/*!
|
||||
* \brief Concrete vector implementation
|
||||
*/
|
||||
class CVector3D : public CVector3DBase<CVector3D>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CVector3D() : CVector3DBase() {}
|
||||
|
||||
/*!
|
||||
* \brief k
|
||||
* \return
|
||||
*/
|
||||
double k() const
|
||||
{
|
||||
return this->m_k;
|
||||
}
|
||||
/*!
|
||||
* \brief Constructor by value
|
||||
* \param i
|
||||
* \param j
|
||||
* \param k
|
||||
*/
|
||||
CVector3D(double i, double j, double k) : CVector3DBase(i, j, k) {}
|
||||
|
||||
/*!
|
||||
* \brief Set i
|
||||
* \param i
|
||||
*/
|
||||
void setI(double i)
|
||||
{
|
||||
this->m_i = i;
|
||||
}
|
||||
/*!
|
||||
* \brief Constructor by value
|
||||
* \param value
|
||||
*/
|
||||
explicit CVector3D(double value) : CVector3DBase(value) {}
|
||||
|
||||
/*!
|
||||
* \brief Set j
|
||||
* \param j
|
||||
*/
|
||||
void setJ(double j)
|
||||
{
|
||||
this->m_j = j;
|
||||
}
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param other
|
||||
*/
|
||||
CVector3D(const CVector3D &other) : CVector3DBase(other) {}
|
||||
|
||||
/*!
|
||||
* \brief Set k
|
||||
* \param k
|
||||
*/
|
||||
void setK(double k)
|
||||
{
|
||||
this->m_k = k;
|
||||
}
|
||||
/*!
|
||||
* \brief i
|
||||
* \return
|
||||
*/
|
||||
double i() const
|
||||
{
|
||||
return this->m_i;
|
||||
}
|
||||
|
||||
};
|
||||
/*!
|
||||
* \brief j
|
||||
* \return
|
||||
*/
|
||||
double j() const
|
||||
{
|
||||
return this->m_j;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
/*!
|
||||
* \brief k
|
||||
* \return
|
||||
*/
|
||||
double k() const
|
||||
{
|
||||
return this->m_k;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Set i
|
||||
* \param i
|
||||
*/
|
||||
void setI(double i)
|
||||
{
|
||||
this->m_i = i;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Set j
|
||||
* \param j
|
||||
*/
|
||||
void setJ(double j)
|
||||
{
|
||||
this->m_j = j;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Set k
|
||||
* \param k
|
||||
*/
|
||||
void setK(double k)
|
||||
{
|
||||
this->m_k = k;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Math::CVector3D)
|
||||
|
||||
Reference in New Issue
Block a user