#include <Ray.h>
Public Member Functions | |
Ray () | |
コンストラクタ | |
Ray (const Vector3 &origin, const Vector3 &direction) | |
コンストラクタ | |
Ray (float originX, float originY, float originZ, float directionX, float directionY, float directionZ) | |
コンストラクタ | |
Ray (const float *const source) | |
コンストラクタ | |
void | set (const Vector3 &origin, const Vector3 &direction) |
値の設定 | |
void | set (float originX, float originY, float originZ, float directionX, float directionY, float directionZ) |
値の設定 | |
void | set (const float *const source) |
値の設定 | |
void | setOrigin (const Vector3 &origin) |
原点の設定 | |
void | setDirection (const Vector3 &direction) |
方向の設定 | |
const Vector3 & | getOrigin () const |
原点の取得 | |
const Vector3 & | getDirection () const |
方向の取得 | |
bool | isZero () const |
ゼロレイかどうか | |
Ray | transform (const Matrix33 &matrix) const |
トランスフォーム | |
Ray | transform (const Matrix34 &matrix) const |
トランスフォーム | |
Ray | 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, float range=Math::epsilon) const |
ライン交差 | |
bool | intersect (const OrientedBox &orientedBox) const |
指向性ボックス交差 | |
bool | intersect (const Plane &plane) const |
平面交差 | |
bool | intersect (const Ray &ray, float range=Math::epsilon) const |
レイ交差 | |
bool | intersect (const Segment &segment, float range=Math::epsilon) const |
セグメント交差 | |
bool | intersect (const Sphere &sphere) const |
球交差 | |
bool | intersect (const Triangle &triangle) const |
三角交差 | |
bool | operator== (const Ray &target) const |
レイが同じかどうか | |
bool | epsilonEquals (const Ray &target, float epsilon) const |
レイが同じかどうか | |
bool | operator!= (const Ray &target) const |
レイが同じでないかどうか | |
bool | notEpsilonEquals (const Ray &target, float epsilon) const |
レイが同じでないかどうか | |
String | toString () const |
文字列化 | |
Static Public Attributes | |
const Ray | zero |
ゼロレイ |
このクラスは継承しないで下さい。
Definition at line 51 of file Ray.h.
|
コンストラクタ このコンストラクタは初期値の設定を行わないため値は不定です。 Definition at line 67 of file Ray.h. Referenced by transform(). |
|
コンストラクタ
|
|
コンストラクタ
|
|
コンストラクタ
|
|
レイが同じかどうか
Definition at line 513 of file Ray.h. References Assert, direction_, Lamp::Vector3::epsilonEquals(), and origin_. |
|
方向の取得
Definition at line 167 of file Ray.h. Referenced by Lamp::PlaneIntersection::intersect(), Lamp::AxisAlignedBoxIntersection::intersect(), Lamp::RayDistance::squaredDistance(), and Lamp::LineDistance::squaredDistance(). |
|
三角距離
Definition at line 389 of file Ray.h. References getSquaredDistance(). |
|
球距離
Definition at line 372 of file Ray.h. References getSquaredDistance(). |
|
セグメント距離
Definition at line 355 of file Ray.h. References getSquaredDistance(). |
|
レイ距離
Definition at line 338 of file Ray.h. References getSquaredDistance(). |
|
平面距離
|
|
指向性ボックス距離
Definition at line 303 of file Ray.h. References getSquaredDistance(). |
|
ライン距離
Definition at line 286 of file Ray.h. References getSquaredDistance(). |
|
コーン距離
Definition at line 269 of file Ray.h. References getSquaredDistance(). |
|
カプセル距離
Definition at line 252 of file Ray.h. References getSquaredDistance(). |
|
軸沿いボックス距離
Definition at line 235 of file Ray.h. References getSquaredDistance(). |
|
点距離
Definition at line 218 of file Ray.h. References getSquaredDistance(). Referenced by getSquaredDistance(). |
|
原点の取得
Definition at line 161 of file Ray.h. Referenced by Lamp::PlaneIntersection::intersect(), Lamp::AxisAlignedBoxIntersection::intersect(), Lamp::RayDistance::squaredDistance(), and Lamp::LineDistance::squaredDistance(). |
|
三角距離の二乗
|
|
球距離の二乗
|
|
セグメント距離の二乗
|
|
レイ距離の二乗
|
|
平面距離の二乗
Definition at line 327 of file Ray.h. References getDistance(). |
|
指向性ボックス距離の二乗
|
|
ライン距離の二乗
|
|
コーン距離の二乗
|
|
カプセル距離の二乗
|
|
軸沿いボックス距離の二乗
|
|
点距離の二乗
Definition at line 54 of file Ray.cpp. Referenced by getDistance(), and Lamp::RayIntersection::intersect(). |
|
三角交差
|
|
球交差
|
|
セグメント交差
|
|
レイ交差
|
|
平面交差
|
|
指向性ボックス交差
|
|
ライン交差
|
|
コーン交差
|
|
カプセル交差
|
|
軸沿いボックス交差
|
|
点交差
|
|
ゼロレイかどうか
Definition at line 176 of file Ray.h. References Lamp::Vector3::epsilonEquals(). |
|
レイが同じでないかどうか
Definition at line 536 of file Ray.h. References Assert, direction_, Lamp::Vector3::notEpsilonEquals(), and origin_. |
|
レイが同じでないかどうか
Definition at line 525 of file Ray.h. References direction_, and origin_. |
|
レイが同じかどうか
Definition at line 502 of file Ray.h. References direction_, and origin_. |
|
値の設定
Definition at line 134 of file Ray.h. References Lamp::Vector3::set(). |
|
値の設定
Definition at line 124 of file Ray.h. References Lamp::Vector3::set(). |
|
値の設定
|
|
方向の設定
|
|
原点の設定
|
|
文字列化
Definition at line 550 of file Ray.h. References Lamp::String::format(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |
|
トランスフォーム
Definition at line 206 of file Ray.h. References Lamp::Matrix44::multiply33(), and Ray(). |
|
トランスフォーム
Definition at line 197 of file Ray.h. References Lamp::Matrix34::multiply33(), and Ray(). |
|
トランスフォーム
Definition at line 188 of file Ray.h. References Ray(). |