Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D Intersection - Ray-Sphere #21

Open
npruehs opened this issue Nov 10, 2015 · 0 comments
Open

3D Intersection - Ray-Sphere #21

npruehs opened this issue Nov 10, 2015 · 0 comments
Labels

Comments

@npruehs
Copy link
Owner

npruehs commented Nov 10, 2015

Implement a ray-sphere intersection test with the following signature:

public static bool Intersects(this Ray3F ray, SphereF sphere)

Call that method from

public static bool Intersects(this SphereF sphere, Ray3F ray)

If you can, provide an overload with an out parameter containing the intersection point(s).

Write at least one unit test illustrating your solution, and/or add any reference links as comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant