Back to class index
| Capsule::IntersectsSyntaxbool Capsule::Intersects(const Ray &ray) const; [4 lines of code]bool Capsule::Intersects(const Line &line) const; [4 lines of code] bool Capsule::Intersects(const LineSegment &lineSegment) const; [4 lines of code] bool Capsule::Intersects(const Plane &plane) const; [4 lines of code] bool Capsule::Intersects(const Sphere &sphere) const; [5 lines of code] bool Capsule::Intersects(const Capsule &capsule) const; [5 lines of code] bool Capsule::Intersects(const AABB &aabb) const; [4 lines of code] bool Capsule::Intersects(const OBB &obb) const; [4 lines of code] bool Capsule::Intersects(const Triangle &triangle) const; [6 lines of code] bool Capsule::Intersects(const Polygon &polygon) const; [4 lines of code] bool Capsule::Intersects(const Frustum &frustum) const; [4 lines of code] bool Capsule::Intersects(const Polyhedron &polyhedron) const; [4 lines of code] Tests whether this capsule and the given object intersect. Both objects are treated as "solid", meaning that if one of the objects is fully contained inside another, this function still returns true. (e.g. in case a line segment is contained inside this capsule, or this capsule is contained inside a Sphere, etc.) The first parameter of this function specifies the other object to test against. See AlsoWork in progress:Todo: in bool Capsule::Intersects(const Ray &ray) const: Add Intersects(Circle/Disc). |