vector3d.h
来自「Mobile STK for Symbian OS V0.1」· C头文件 代码 · 共 57 行
H
57 行
/***************************************************//*! \class Vector3D \brief STK 3D vector class. This class implements a three-dimensional vector. by Perry R. Cook, 1995 - 2004.*//***************************************************/#ifndef STK_VECTOR3D_H#define STK_VECTOR3D_H#include "Stk.h"class Vector3D : public Stk{public: //! Default constructor taking optional initial X, Y, and Z values. Vector3D(StkFloat initX=0.0, StkFloat initY=0.0, StkFloat initZ=0.0); //! Class destructor. ~Vector3D(); //! Get the current X value. StkFloat getX(); //! Get the current Y value. StkFloat getY(); //! Get the current Z value. StkFloat getZ(); //! Calculate the vector length. StkFloat getLength(); //! Set the X, Y, and Z values simultaniously. void setXYZ(StkFloat x, StkFloat y, StkFloat z); //! Set the X value. void setX(StkFloat x); //! Set the Y value. void setY(StkFloat y); //! Set the Z value. void setZ(StkFloat z);protected: StkFloat myX_; StkFloat myY_; StkFloat myZ_;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?