⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vector3d.h

📁 Mobile STK for Symbian OS V0.1
💻 H
字号:
/***************************************************//*! \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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -