distance3d.geometry.support_function_sphere¶
- distance3d.geometry.support_function_sphere(search_direction, center, radius)[source]¶
Compute extreme point of box along a direction.
You can find similar implementations here:
https://github.com/kevinmoran/GJK/blob/b38d923d268629f30b44c3cf6d4f9974bbcdb0d3/Collider.h#L33 (Copyright (c) 2017 Kevin Moran, MIT License or Unlicense)
- Parameters:
- search_directionarray, shape (3,)
Search direction.
- centerarray, shape (3,)
Center of the sphere.
- radiusfloat
Radius of the sphere.
- Returns:
- extreme_pointarray, shape (3,)
Extreme point along search direction.