Back to class index
| LineSegment::IntersectsSyntaxbool LineSegment::Intersects(const Plane &plane) const; [6 lines of code]bool LineSegment::Intersects(const Plane &plane, float *d) const; [4 lines of code] bool LineSegment::Intersects(const Triangle &triangle, float *d, float4 *intersectionPoint) const; [4 lines of code] bool LineSegment::Intersects(const Sphere &s, float4 *intersectionPoint=0, float4 *intersectionNormal=0, float *d=0) const; [4 lines of code] bool LineSegment::Intersects(const AABB &aabb, float &dNear, float &dFar) const; [4 lines of code] bool LineSegment::Intersects(const AABB &aabb) const; [4 lines of code] bool LineSegment::Intersects(const OBB &obb, float &dNear, float &dFar) const; [4 lines of code] bool LineSegment::Intersects(const OBB &obb) const; [4 lines of code] bool LineSegment::Intersects(const Capsule &capsule) const; [4 lines of code] bool LineSegment::Intersects(const Polygon &polygon) const; [4 lines of code] bool LineSegment::Intersects(const Frustum &frustum) const; [4 lines of code] bool LineSegment::Intersects(const Polyhedron &polyhedron) const; [4 lines of code] bool LineSegment::Intersects(const LineSegment &lineSegment, float epsilon=1e-3f) const; [4 lines of code] Tests whether this line segment 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. (for example, if this line segment is contained inside a sphere) Parametersfloat *d [out]If specified, this parameter receives the normalized distance along this line segment which specifies the closest point on this line segment to the specified point. This pointer may be null.float4 *intersectionPoint [out]If specified, receives the point of intersection. This pointer may be null.float4 *intersectionNormal [out]If specified, receives the normal vector of the other object at the point of intersection. This pointer may be null.float &dNear [out]If specified, receives the parametric distance along this line segment denoting where the line entered the bounding box object.float &dFar [out]If specified, receives the parametric distance along this line segment denoting where the line exited the bounding box object.floatepsilonIf testing intersection between two line segments, a distance threshold value is used to account for floating-point inaccuracies. Work in progress:Todo: in bool LineSegment::Intersects(const Plane &plane) const: Output intersection point. |