smile.modeling.BoundaryCalculator
Provides utility methods for calculating boundaries around picture elements and positions.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Calculates the bounding box that encompasses all provided picture elements.
Calculates the bounding box that encompasses all provided picture elements.
Value parameters
-
elements
-
A sequence of PictureElement
instances.
Attributes
-
Returns
-
A Bounds
instance representing the minimum bounding box around all elements. If the sequence is empty, returns NullBounds
.
Calculates the bounding box from a sequence of positions.
Calculates the bounding box from a sequence of positions.
Value parameters
-
positions
-
A sequence of Pos
instances representing positions.
Attributes
-
Returns
-
A Bounds
instance representing the minimum bounding box around all positions. If the sequence is empty, returns NullBounds
.
Calculates the bounding box for a given text object.
Calculates the bounding box for a given text object.
Value parameters
-
text
-
The Text
object for which to calculate the bounding box.
Attributes
-
Returns
-
The Bounds
representing the bounding box of the text.