Insets container as 4-int tuple.
Value parameters
- bottom
-
Bottom inset.
- left
-
Left inset.
- right
-
Right inset.
- top
-
Top inset.
Attributes
- Companion
- object
- Source
- CPInsets.scala
- Graph
-
- Supertypes
-
trait Producttrait Equalstrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
Creates new insets container.
Creates new insets container.
Value parameters
- hor
-
Left and right inset.
- vert
-
Top and bottom inset.
Attributes
- Source
- CPInsets.scala
Creates new insets container.
Creates new insets container.
Value parameters
- d
-
Top, left, bottom and right inset.
Attributes
- Source
- CPInsets.scala
Concrete methods
Creates new copy with given bottom inset.
Creates new copy with given bottom inset.
Value parameters
- d
-
Bottom inset.
Attributes
- Returns
-
New copy.
- Source
- CPInsets.scala
Creates new copy with given horizontal insets.
Creates new copy with given horizontal insets.
Value parameters
- d
-
Left and right (horizontal) inset.
Attributes
- Returns
-
New copy.
- Source
- CPInsets.scala
Creates new copy with given left inset.
Creates new copy with given left inset.
Value parameters
- d
-
Left inset.
Attributes
- Returns
-
New copy.
- Source
- CPInsets.scala
Creates new copy with given right inset.
Creates new copy with given right inset.
Value parameters
- d
-
Right inset.
Attributes
- Returns
-
New copy.
- Source
- CPInsets.scala
Creates new copy with given top inset.
Creates new copy with given top inset.
Value parameters
- d
-
Top inset.
Attributes
- Returns
-
New copy.
- Source
- CPInsets.scala
Creates new copy with given vertical insets.
Creates new copy with given vertical insets.
Value parameters
- d
-
Top and bottom (vertical) inset.
Attributes
- Returns
-
New copy.
- Source
- CPInsets.scala
Inherited methods
Multiplies given value with each member of this tuple.
Multiplies given value with each member of this tuple.
Value parameters
- x
-
Value to multiple by.
Attributes
- Returns
-
New tuple as a result of multiplication.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Multiple two tuples by multiplying their corresponding values.
Multiple two tuples by multiplying their corresponding values.
Value parameters
- x
-
Other tuple to multiply with.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Adds given value to each member of this tuple.
Adds given value to each member of this tuple.
Value parameters
- x
-
Value to add.
Attributes
- Returns
-
New tuple as a result of addition.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Adds two tuples by adding their corresponding values.
Adds two tuples by adding their corresponding values.
Value parameters
- x
-
Tuple to add.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Subtracts given value from each member of this tuple.
Subtracts given value from each member of this tuple.
Value parameters
- x
-
Value to subtract.
Attributes
- Returns
-
New tuple as a result of subtraction.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Subtracts given tuple from this one by subtracting their corresponding values.
Subtracts given tuple from this one by subtracting their corresponding values.
Value parameters
- x
-
Tuple to subtract.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Divides each member of this tuple by the given value.
Divides each member of this tuple by the given value.
Value parameters
- x
-
Value to divide by.
Attributes
- Returns
-
New tuple as a result of division.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Device this tuple by the given tuple by dividing their corresponding values.
Device this tuple by the given tuple by dividing their corresponding values.
Value parameters
- x
-
Other tuple to divide by.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Less-then '<' operator for int
.
Less-then '<' operator for int
.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Less-then '<' operator for tuples.
Less-then '<' operator for tuples.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Less-then-or-equal '<=' operator for tuples.
Less-then-or-equal '<=' operator for tuples.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Less-then-or-equal '<=' operator for int
.
Less-then-or-equal '<=' operator for int
.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Greater-then '>' operator for tuples.
Greater-then '>' operator for tuples.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Greater-then '>' operator for int
.
Greater-then '>' operator for int
.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Greater-then-or-equal '>=' operator for tuples.
Greater-then-or-equal '>=' operator for tuples.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Greater-then-or-equal '>=' operator for int
.
Greater-then-or-equal '>=' operator for int
.
Value parameters
- x
-
Other tuple to compare.
Attributes
- Note
-
Tuples must have the same arity.
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Creates a copy of this tuple.
Creates a copy of this tuple.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
CPIntTuple -> Any
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Tests whether all values in this tuple are one.
Tests whether all values in this tuple are one.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Checks if this tuple contains only positive (> 0) numbers.
Checks if this tuple contains only positive (> 0) numbers.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Checks if this tuple contains only whole (>= 0) numbers.
Checks if this tuple contains only whole (>= 0) numbers.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Tests whether all values in this tuple are zero.
Tests whether all values in this tuple are zero.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Maps this tuple using given function.
Maps this tuple using given function.
Value parameters
- f
-
Mapping function.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
CPIntTuple -> Any
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala
Concrete fields
Total horizontal offset (left + right).
Total vertical offset (top + bottom).
Inherited fields
Arity of this tuple.
Attributes
- Inherited from:
- CPIntTuple (hidden)
- Source
- CPIntTuple.scala