how to obtain collider extents?

I have some box colliders and I need to know the min and max Vector3 positions that define each cube in world coordinates. Is there a ready made function or must I make my own by calculating the extents from the transform.position and the collider.size?


According to the docs, Collider.bounds already is in world space, so you can access min and max with Collider.bounds.min and Collider.bounds.max.