Back to class index
Ray[Class Summary]
pos
dir
ctor (+3 overloads)
GetPoint(distance)[const]
Transform(transform) (+3 overloads)
Contains(...)[const] (+1 overload)
Equals(otherRay,epsilon)[const]
Distance(point,d)[const] (+9 overloads)
ClosestPoint(targetPoint,d)[const] (+3 overloads)
Intersects(...)[const] (+13 overloads)
IntersectsDisc(disc)[const]
ToLine()[const]
ToLineSegment(d)[const]

Ray::IntersectsDisc

Syntax

bool Ray::IntersectsDisc(const Circle &disc) const; [4 lines of code]

Tests if this ray intersects the given disc.

Performance

24.632nsecs/call ≈ 40.6M calls/second ≈ 676.64k calls/frame (@ 60fps).
This function does not perform dynamic memory allocation.

Work in progress:

Todo: in bool Ray::IntersectsDisc(const Circle &disc) const:
This signature will be moved to bool Intersects(const Disc &disc) const;

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index