Bounds

smile.modeling.Bounds
See theBounds companion class
object Bounds

Provides factory methods for creating Bounds objects, which represent rectangular areas in a coordinate space.

Attributes

Companion
class
Source
Bounds.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Bounds.type

Members list

Type members

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(upperLeftX: Double, upperLeftY: Double, lowerRightX: Double, lowerRightY: Double): Bounds

Creates a Bounds instance from corner coordinates in pixels, sorting the coordinates so the upper left is at the top-left and the lower right is at the bottom-right.

Creates a Bounds instance from corner coordinates in pixels, sorting the coordinates so the upper left is at the top-left and the lower right is at the bottom-right.

Attributes

Source
Bounds.scala
def apply(upperLeftCorner: Pos, lowerRightCorner: Pos): Bounds

Creates a Bounds instance from two corner positions, sorting the coordinates so the corners are the upper left and the lower right. This overload shadows the case class's own apply, which would give corners in reverse order negative dimensions.

Creates a Bounds instance from two corner positions, sorting the coordinates so the corners are the upper left and the lower right. This overload shadows the case class's own apply, which would give corners in reverse order negative dimensions.

Attributes

Source
Bounds.scala
def apply(center: Pos, width: Int, height: Int): Bounds

Attributes

Source
Bounds.scala
def apply(center: Pos, width: Double, height: Double): Bounds

Creates a Bounds instance centered around a given point with specified width and height in pixels.

Creates a Bounds instance centered around a given point with specified width and height in pixels.

Attributes

Source
Bounds.scala

Givens

Givens

Attributes

Source
Bounds.scala