#include <Triangle.h>
Public Member Functions | |
Triangle () | |
コンストラクタ | |
Triangle (const Vector3 &vertex0, const Vector3 &vertex1, const Vector3 &vertex2) | |
コンストラクタ | |
Triangle (float vertex0x, float vertex0y, float vertex0z, float vertex1x, float vertex1y, float vertex1z, float vertex2x, float vertex2y, float vertex2z) | |
コンストラクタ | |
Triangle (const Vector3 *const source) | |
コンストラクタ | |
void | set (const Vector3 &vertex0, const Vector3 &vertex1, const Vector3 &vertex2) |
値の設定 | |
void | set (float vertex0x, float vertex0y, float vertex0z, float vertex1x, float vertex1y, float vertex1z, float vertex2x, float vertex2y, float vertex2z) |
値の設定 | |
void | set (const Vector3 *const source) |
値の設定 | |
void | setVertex (int index, const Vector3 &vertex) |
頂点の設定 | |
const Vector3 & | getVertex (int index) const |
頂点の取得 | |
Vector3 | getNormal () const |
法線の取得 | |
bool | isZero () const |
ゼロ三角かどうか | |
Triangle | transform (const Matrix33 &matrix) const |
トランスフォーム | |
Triangle | transform (const Matrix34 &matrix) const |
トランスフォーム | |
Triangle | transform (const Matrix44 &matrix) const |
トランスフォーム | |
float | getDistance (const Vector3 &point) const |
点距離 | |
float | getSquaredDistance (const Vector3 &point) const |
点距離の二乗 | |
float | getDistance (const AxisAlignedBox &axisAlignedBox) const |
軸沿いボックス距離 | |
float | getSquaredDistance (const AxisAlignedBox &axisAlignedBox) const |
軸沿いボックス距離の二乗 | |
float | getDistance (const Capsule &capsule) const |
カプセル距離 | |
float | getSquaredDistance (const Capsule &capsule) const |
カプセル距離の二乗 | |
float | getDistance (const Cone &cone) const |
コーン距離 | |
float | getSquaredDistance (const Cone &cone) const |
コーン距離の二乗 | |
float | getDistance (const Line &line) const |
ライン距離 | |
float | getSquaredDistance (const Line &line) const |
ライン距離の二乗 | |
float | getDistance (const OrientedBox &orientedBox) const |
指向性ボックス距離 | |
float | getSquaredDistance (const OrientedBox &orientedBox) const |
指向性ボックス距離の二乗 | |
float | getDistance (const Plane &plane) const |
平面距離 | |
float | getSquaredDistance (const Plane &plane) const |
平面距離の二乗 | |
float | getDistance (const Ray &ray) const |
レイ距離 | |
float | getSquaredDistance (const Ray &ray) const |
レイ距離の二乗 | |
float | getDistance (const Segment &segment) const |
セグメント距離 | |
float | getSquaredDistance (const Segment &segment) const |
セグメント距離の二乗 | |
float | getDistance (const Sphere &sphere) const |
球距離 | |
float | getSquaredDistance (const Sphere &sphere) const |
球距離の二乗 | |
float | getDistance (const Triangle &triangle) const |
三角距離 | |
float | getSquaredDistance (const Triangle &triangle) const |
三角距離の二乗 | |
bool | intersect (const Vector3 &point, float range=Math::epsilon) const |
点交差 | |
bool | intersect (const AxisAlignedBox &axisAlignedBox) const |
軸沿いボックス交差 | |
bool | intersect (const Capsule &capsule) const |
カプセル交差 | |
bool | intersect (const Cone &cone) const |
コーン交差 | |
bool | intersect (const Line &line) const |
ライン交差 | |
bool | intersect (const OrientedBox &orientedBox) const |
指向性ボックス交差 | |
bool | intersect (const Plane &plane) const |
平面交差 | |
bool | intersect (const Ray &ray) const |
レイ交差 | |
bool | intersect (const Segment &segment) const |
セグメント交差 | |
bool | intersect (const Sphere &sphere) const |
球交差 | |
bool | intersect (Intersection *intersection, const Sphere &sphere) const |
球交差 | |
bool | intersect (const Triangle &triangle) const |
三角交差 | |
bool | operator== (const Triangle &target) const |
三角が同じかどうか | |
bool | epsilonEquals (const Triangle &target, float epsilon) const |
三角が同じかどうか | |
bool | operator!= (const Triangle &target) const |
三角が同じでないかどうか | |
bool | notEpsilonEquals (const Triangle &target, float epsilon) const |
三角が同じでないかどうか | |
String | toString () const |
文字列化 | |
Static Public Attributes | |
const Triangle | zero |
ゼロ三角 |
このクラスは継承しないで下さい。
Definition at line 52 of file Triangle.h.
|
コンストラクタ このコンストラクタは初期値の設定を行わないため値は不定です。 Definition at line 68 of file Triangle.h. Referenced by transform(). |
|
コンストラクタ
Definition at line 76 of file Triangle.h. |
|
コンストラクタ
Definition at line 95 of file Triangle.h. References Lamp::Vector3::set(). |
|
コンストラクタ
Definition at line 107 of file Triangle.h. |
|
三角が同じかどうか
Definition at line 544 of file Triangle.h. References Assert, Lamp::Vector3::epsilonEquals(), and vertex_. Referenced by isZero(). |
|
三角距離
Definition at line 413 of file Triangle.h. References getSquaredDistance(). |
|
球距離
Definition at line 396 of file Triangle.h. References getSquaredDistance(). |
|
セグメント距離
Definition at line 379 of file Triangle.h. References getSquaredDistance(). |
|
レイ距離
Definition at line 362 of file Triangle.h. References getSquaredDistance(). |
|
平面距離
Definition at line 91 of file Triangle.cpp. |
|
指向性ボックス距離
Definition at line 327 of file Triangle.h. References getSquaredDistance(). |
|
ライン距離
Definition at line 310 of file Triangle.h. References getSquaredDistance(). |
|
コーン距離
Definition at line 293 of file Triangle.h. References getSquaredDistance(). |
|
カプセル距離
Definition at line 276 of file Triangle.h. References getSquaredDistance(). |
|
軸沿いボックス距離
Definition at line 259 of file Triangle.h. References getSquaredDistance(). |
|
点距離
Definition at line 242 of file Triangle.h. References getSquaredDistance(). Referenced by getSquaredDistance(). |
|
法線の取得
Definition at line 186 of file Triangle.h. |
|
三角距離の二乗
Definition at line 111 of file Triangle.cpp. |
|
球距離の二乗
Definition at line 106 of file Triangle.cpp. |
|
セグメント距離の二乗
Definition at line 101 of file Triangle.cpp. |
|
レイ距離の二乗
Definition at line 96 of file Triangle.cpp. |
|
平面距離の二乗
Definition at line 351 of file Triangle.h. References getDistance(). |
|
指向性ボックス距離の二乗
Definition at line 86 of file Triangle.cpp. |
|
ライン距離の二乗
Definition at line 81 of file Triangle.cpp. |
|
コーン距離の二乗
Definition at line 76 of file Triangle.cpp. |
|
カプセル距離の二乗
Definition at line 71 of file Triangle.cpp. |
|
軸沿いボックス距離の二乗
Definition at line 66 of file Triangle.cpp. |
|
点距離の二乗
Definition at line 61 of file Triangle.cpp. Referenced by getDistance(). |
|
頂点の取得
Definition at line 177 of file Triangle.h. References Assert. Referenced by Lamp::DeformedMeshGeometry::calculateBounding(), Lamp::SphereIntersection::intersect(), Lamp::CollisionRenderer::setupStaticDeformedMeshCollision(), and Lamp::TextCollisionSaver::writeStaticDeformedMeshCollision(). |
|
三角交差
Definition at line 175 of file Triangle.cpp. |
|
球交差
Definition at line 168 of file Triangle.cpp. References Lamp::Intersection::reverse(). |
|
球交差
Definition at line 163 of file Triangle.cpp. |
|
セグメント交差
Definition at line 158 of file Triangle.cpp. |
|
レイ交差
Definition at line 153 of file Triangle.cpp. |
|
平面交差
Definition at line 148 of file Triangle.cpp. |
|
指向性ボックス交差
Definition at line 143 of file Triangle.cpp. |
|
ライン交差
Definition at line 138 of file Triangle.cpp. |
|
コーン交差
Definition at line 128 of file Triangle.cpp. |
|
カプセル交差
Definition at line 133 of file Triangle.cpp. |
|
軸沿いボックス交差
Definition at line 123 of file Triangle.cpp. |
|
点交差
Definition at line 118 of file Triangle.cpp. Referenced by Lamp::DeformedMeshGeometry::intersectMesh(). |
|
ゼロ三角かどうか
Definition at line 197 of file Triangle.h. References epsilonEquals(), and zero. |
|
三角が同じでないかどうか
Definition at line 571 of file Triangle.h. References Assert, Lamp::Vector3::notEpsilonEquals(), and vertex_. |
|
三角が同じでないかどうか
Definition at line 558 of file Triangle.h. References vertex_. |
|
三角が同じかどうか
Definition at line 531 of file Triangle.h. References vertex_. |
|
値の設定
Definition at line 153 of file Triangle.h. |
|
値の設定
Definition at line 141 of file Triangle.h. References Lamp::Vector3::set(). |
|
値の設定
Definition at line 122 of file Triangle.h. |
|
頂点の設定
Definition at line 164 of file Triangle.h. References Assert. Referenced by Lamp::MeshData::getTriangle(), and Lamp::TextCollisionLoader::readTriangle(). |
|
文字列化
Definition at line 587 of file Triangle.h. References Lamp::String::format(). |
|
トランスフォーム
Definition at line 229 of file Triangle.h. References Triangle(). |
|
トランスフォーム
Definition at line 219 of file Triangle.h. References Triangle(). |
|
トランスフォーム
Definition at line 209 of file Triangle.h. References Triangle(). Referenced by Lamp::StaticDeformedMeshCollision::getWorldMesh(). |