Changeset 3023 for branches/nanovis2/packages/vizservers/nanovis/Vector3.h
- Timestamp:
- Jun 5, 2012, 12:08:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nanovis2/packages/vizservers/nanovis/Vector3.h
r3007 r3023 26 26 { 27 27 public: 28 float x, y, z;29 30 28 Vector3() 31 29 {} … … 177 175 } 178 176 177 float x, y, z; 178 179 179 private: 180 180 float radians(float degree) const … … 186 186 typedef std::vector<Vector3> Vector3Array; 187 187 188 /** 189 * \brief Linear interpolation of 2 vectors 190 */ 191 inline Vector3 vlerp(const Vector3& v1, const Vector3& v2, double t) 192 { 193 return Vector3(v1.x * (1.0-t) + v2.x * t, 194 v1.y * (1.0-t) + v2.y * t, 195 v1.z * (1.0-t) + v2.z * t); 196 } 197 188 198 #endif
Note: See TracChangeset
for help on using the changeset viewer.