BEPUphysics.CollisionShapes.ConvexShapes.BoxShape.ComputeMaximumRadius C# (CSharp) Méthode

ComputeMaximumRadius() public méthode

Computes the maximum radius of the shape. This is often larger than the actual maximum radius; it is simply an approximation that avoids underestimating.
public ComputeMaximumRadius ( ) : float
Résultat float
        public override float ComputeMaximumRadius()
        {
            return (float)Math.Sqrt(halfWidth * halfWidth + halfHeight * halfHeight + halfLength * halfLength);
        }