Len

smile.modeling.Len
See theLen companion object
case class Len(inPixels: Double)

Represents a length in a graphical context, measured in pixels.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def +(other: Len): Len
def -(other: Len): Len
def floor: Int

Floors the length to the nearest whole number.

Floors the length to the nearest whole number.

Attributes

Returns

The floored value of the length as an integer.

def half: Len

Calculates half of the length.

Calculates half of the length.

Attributes

Returns

A Len instance representing half of the original length.

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product