2009-07-01から1日間の記事一覧

32ビット単精度浮動小数3次元ベクトルクラス

C++

#ifndef VECTOR3F_H #define VECTOR3F_H #include <iostream> #include <math.h> class Vector3f { public: float x; float y; float z; Vector3f() : x(0.0f), y(0.0f), z(0.0f) {} Vector3f(float x, float y, float z) : x(x), y(y), z(z) {} Vector3f(const Vector3f& star</math.h></iostream>…