Example #1
0
float3 Capsule::ExtremePoint(const float3 &direction) const
{
	return (Dot(direction, l.b - l.a) >= 0.f ? l.b : l.a) + direction.ScaledToLength(r);
}
Example #2
0
float3 Sphere::ExtremePoint(const float3 &direction) const
{
	return pos + direction.ScaledToLength(r);
}