#include <SphereIntersection.h>
Static Public Member Functions | |
bool | intersect (const Sphere &sphere, const Vector3 &point) |
点交差 | |
bool | intersect (const Sphere &sphere0, const Sphere &sphere1) |
球交差 | |
bool | intersect (Intersection *intersection, const Sphere &sphere0, const Sphere &sphere1) |
球交差 | |
bool | intersect (const Sphere &sphere, const Triangle &triangle) |
三角交差 | |
bool | intersect (Intersection *intersection, const Sphere &sphere, const Triangle &triangle) |
三角交差 |
Definition at line 38 of file SphereIntersection.h.
|
三角交差
Definition at line 173 of file SphereIntersection.cpp. References Lamp::Vector3::crossProduct(), Lamp::Vector3::dotProduct(), Lamp::Sphere::getCenter(), Lamp::Sphere::getRadius(), Lamp::Vector3::getSquaredLength(), Lamp::Triangle::getVertex(), Lamp::Vector3::isZero(), Lamp::Vector3::normalize(), Lamp::Intersection::set(), and Lamp::Vector3::setLength(). |
|
三角交差
Definition at line 77 of file SphereIntersection.cpp. References Lamp::Vector3::crossProduct(), Lamp::Vector3::dotProduct(), Lamp::Sphere::getCenter(), Lamp::Sphere::getRadius(), Lamp::Vector3::getSquaredLength(), Lamp::Triangle::getVertex(), and Lamp::Vector3::normalize(). |
|
球交差
Definition at line 55 of file SphereIntersection.cpp. References Lamp::Sphere::getCenter(), Lamp::Sphere::getRadius(), Lamp::Vector3::getSquaredLength(), Lamp::Vector3::isZero(), Lamp::Vector3::normalize(), and Lamp::Intersection::set(). |
|
球交差
Definition at line 45 of file SphereIntersection.cpp. References Lamp::Sphere::getCenter(), Lamp::Sphere::getRadius(), and Lamp::Vector3::getSquaredLength(). |
|
点交差
Definition at line 37 of file SphereIntersection.cpp. References Assert. |