#include <Vector3.h>
Public Member Functions | |
Vector3 () | |
コンストラクタ | |
Vector3 (float sourceX, float sourceY, float sourceZ) | |
コンストラクタ | |
Vector3 (const float *const source) | |
コンストラクタ | |
void | set (float sourceX, float sourceY, float sourceZ) |
値の設定 | |
void | set (const float *const source) |
値の設定 | |
Vector3 | operator+ (const Vector3 &addVector) const |
加算 | |
Vector3 | operator- (const Vector3 &subVector) const |
減算 | |
Vector3 | operator * (float mulValue) const |
乗算 | |
Vector3 | operator+ () const |
+演算子 | |
Vector3 | operator- () const |
-演算子 | |
Vector3 & | operator+= (const Vector3 &addVector) |
代入加算 | |
Vector3 & | operator-= (const Vector3 &subVector) |
代入減算 | |
Vector3 & | operator *= (float mulValue) |
代入乗算 | |
Vector3 & | inverse () |
逆ベクトル | |
Vector3 & | abs () |
絶対値 | |
float | dotProduct (const Vector3 &dotVector) const |
内積 | |
Vector3 | crossProduct (const Vector3 &crossVector) const |
外積 | |
float | getLength () const |
ベクトル長の取得 | |
Vector3 & | setLength (float length) |
ベクトル長の設定 | |
float | getSquaredLength () const |
ベクトル長の二乗を取得 | |
Vector3 & | normalize () |
正規化 | |
bool | isZero () const |
ゼロベクトルかどうか | |
bool | isUnit () const |
単位ベクトルかどうか | |
float | maximumValue () const |
最大値 | |
float | minimumValue () const |
最小値 | |
bool | operator== (const Vector3 &target) const |
ベクトルが同じかどうか | |
bool | epsilonEquals (const Vector3 &target, float epsilon) const |
ベクトルが同じかどうか | |
bool | operator!= (const Vector3 &target) const |
ベクトルが同じでないかどうか | |
bool | notEpsilonEquals (const Vector3 &target, float epsilon) const |
ベクトルが同じでないかどうか | |
String | toString () const |
文字列化 | |
Static Public Attributes | |
const Vector3 | zero |
ゼロベクトル | |
const Vector3 | unitX |
X軸単位ベクトル. | |
const Vector3 | unitY |
Y軸単位ベクトル. | |
const Vector3 | unitZ |
Z軸単位ベクトル. | |
const Vector3 | unitScale |
スケール単位ベクトル | |
Friends | |
Vector3 | operator * (float mulValue, const Vector3 &mulVector) |
乗算 |
このクラスは継承しないで下さい。
Definition at line 39 of file Vector3.h.
|
コンストラクタ このコンストラクタは初期値の設定を行わないため値は不定です。 Definition at line 86 of file Vector3.h. Referenced by crossProduct(), operator *(), operator+(), and operator-(). |
|
コンストラクタ
|
|
コンストラクタ
|
|
絶対値
|
|
外積
Definition at line 270 of file Vector3.h. References Vector3(), x, y, and z. Referenced by Lamp::Math3D::calculateNormal(), Lamp::SphereIntersection::intersect(), Lamp::PlaneIntersection::intersect(), Lamp::Quaternion::operator *(), and Lamp::Camera::setLookAt(). |
|
内積
Definition at line 260 of file Vector3.h. Referenced by Lamp::Plane::dotProduct(), Lamp::OrientedBox::getEffectiveDiameter(), Lamp::SphereIntersection::intersect(), Lamp::PlaneIntersection::intersect(), Lamp::LineIntersection::intersect(), Lamp::CapsuleIntersection::intersect(), Lamp::Plane::Plane(), Lamp::Plane::set(), Lamp::Camera::setLookAt(), Lamp::SegmentDistance::squaredDistance(), Lamp::RayDistance::squaredDistance(), Lamp::LineDistance::squaredDistance(), and Lamp::Plane::transform(). |
|
ベクトルが同じかどうか
Definition at line 379 of file Vector3.h. References Assert, x, y, and z. Referenced by Lamp::Triangle::epsilonEquals(), Lamp::Sphere::epsilonEquals(), Lamp::Segment::epsilonEquals(), Lamp::Ray::epsilonEquals(), Lamp::Plane::epsilonEquals(), Lamp::OrientedBox::epsilonEquals(), Lamp::Line::epsilonEquals(), Lamp::Cone::epsilonEquals(), Lamp::Capsule::epsilonEquals(), Lamp::AxisAlignedBox::epsilonEquals(), Lamp::OrientedBox::isUnit(), Lamp::Segment::isZero(), Lamp::Ray::isZero(), Lamp::OrientedBox::isZero(), Lamp::Line::isZero(), Lamp::Cone::isZero(), Lamp::Capsule::isZero(), and Lamp::Camera::setLookAt(). |
|
ベクトル長の取得
Definition at line 285 of file Vector3.h. Referenced by Lamp::Sphere::append(), Lamp::Camera::clippingSetup(), isUnit(), Lamp::Sphere::merge(), normalize(), setLength(), Lamp::Plane::setLength(), and Lamp::LODSceneNode::traverse(). |
|
|
単位ベクトルかどうか
Definition at line 335 of file Vector3.h. References getLength(). Referenced by Lamp::Quaternion::setRotationAxis(), Lamp::Matrix44::setRotationAxis(), Lamp::Matrix34::setRotationAxis(), Lamp::Matrix33::setRotationAxis(), and Lamp::DirectionalLight::traverse(). |
|
ゼロベクトルかどうか
Definition at line 325 of file Vector3.h. Referenced by Lamp::Sphere::append(), Lamp::SphereIntersection::intersect(), Lamp::Sphere::merge(), and Lamp::SoundListener::setDirection(). |
|
最大値
Definition at line 343 of file Vector3.h. Referenced by Lamp::AnimationCompressor::compressScale(). |
|
最小値
|
|
正規化
Definition at line 313 of file Vector3.h. References Assert, and getLength(). Referenced by Lamp::Math3D::calculateNormal(), Lamp::Matrix44::getRotationAxis(), Lamp::Matrix34::getRotationAxis(), Lamp::Matrix33::getRotationAxis(), Lamp::SphereIntersection::intersect(), Lamp::Math3D::lookAtZ(), Lamp::DirectionalLight::setDirection(), Lamp::Camera::setLookAt(), and Lamp::DirectionalLight::traverse(). |
|
ベクトルが同じでないかどうか
Definition at line 402 of file Vector3.h. References Assert, x, y, and z. Referenced by Lamp::BuildIndexedTriangleFilter::findIndex(), Lamp::Triangle::notEpsilonEquals(), Lamp::Sphere::notEpsilonEquals(), Lamp::Segment::notEpsilonEquals(), Lamp::Ray::notEpsilonEquals(), Lamp::Plane::notEpsilonEquals(), Lamp::OrientedBox::notEpsilonEquals(), Lamp::Line::notEpsilonEquals(), Lamp::Cone::notEpsilonEquals(), Lamp::Capsule::notEpsilonEquals(), and Lamp::AxisAlignedBox::notEpsilonEquals(). |
|
乗算
|
|
代入乗算
|
|
ベクトルが同じでないかどうか
|
|
+演算子
|
|
加算
|
|
代入加算
|
|
-演算子
|
|
減算
|
|
代入減算
|
|
ベクトルが同じかどうか
|
|
値の設定
|
|
値の設定
Definition at line 115 of file Vector3.h. Referenced by Lamp::Camera::clippingSetup(), Lamp::AxisAlignedBox::getCornerArray(), Lamp::Quaternion::getRotationAxis(), Lamp::Matrix44::getRotationAxis(), Lamp::Matrix34::getRotationAxis(), Lamp::Matrix33::getRotationAxis(), Lamp::Triangle::set(), Lamp::Sphere::set(), Lamp::Segment::set(), Lamp::Ray::set(), Lamp::Plane::set(), Lamp::OrientedBox::set(), Lamp::Line::set(), Lamp::Cone::set(), Lamp::Capsule::set(), Lamp::AxisAlignedBox::set(), Lamp::Sphere::setCenter(), Lamp::Plane::setNormal(), Lamp::Sound3D::Sound3D(), Lamp::Plane::transform(), and Lamp::Triangle::Triangle(). |
|
ベクトル長の設定
Definition at line 293 of file Vector3.h. References Assert, and getLength(). Referenced by Lamp::SphereIntersection::intersect(). |
|
文字列化
Definition at line 417 of file Vector3.h. References Lamp::String::format(), x, y, and z. |
|
乗算
|