2D dimension immutable container.

## Attributes

- height
Height in characters.

- width
Width in characters.

- Companion:
- object
- Source:
- CPDim.scala
- Graph
- Supertypes

## Members list

## Value members

### Constructors

Creates `d`

x`d`

square dimension.

### Concrete methods

Tests whether this dimension is less than or equal to the given one. Note that this operation will check that both width and height are less than or equal.

Tests whether this dimension is less than or equal to the given one. Note that this operation will check that both width and height are less than or equal.

## Attributes

- that
Other dimension to check.

- Source:
- CPDim.scala

Tests whether this dimension is less than the given one. Note that this operation will check that both width and height are less than.

Tests whether this dimension is less than the given one. Note that this operation will check that both width and height are less than.

## Attributes

- that
Other dimension to check.

- Source:
- CPDim.scala

Tests whether this dimension is less than or greater to the given one. Note that this operation will check that both width and height are greater than or equal.

Tests whether this dimension is less than or greater to the given one. Note that this operation will check that both width and height are greater than or equal.

## Attributes

- that
Other dimension to check.

- Source:
- CPDim.scala

Tests whether this dimension is greater than the given one. Note that this operation will check that both width and height are greater than.

Tests whether this dimension is greater than the given one. Note that this operation will check that both width and height are greater than.

## Attributes

- that
Other dimension to check.

- Source:
- CPDim.scala

## Attributes

- Definition Classes
- Ordered
- Source:
- CPDim.scala

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
- Source:
- CPDim.scala

### Inherited methods

Multiplies given value with each member of this tuple.

Multiplies given value with each member of this tuple.

## Attributes

- x
Value to multiple by.

- 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.

## Attributes

- x
Other tuple to multiply with.

- 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.

## Attributes

- x
Value to add.

- 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.

## Attributes

- x
Tuple to add.

- 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.

## Attributes

- x
Value to subtract.

- 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.

## Attributes

- x
Tuple to subtract.

- 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.

## Attributes

- x
Value to divide by.

- 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.

## Attributes

- x
Other tuple to divide by.

- Note:
Tuples must have the same arity.

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala

Less-then '<' operator for `int`

.

Less-then '<' operator for `int`

.

## Attributes

- x
Other tuple to compare.

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala

Less-then '<' operator for tuples.

Less-then '<' operator for tuples.

## Attributes

- x
Other tuple to compare.

- 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.

## Attributes

- x
Other tuple to compare.

- 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`

.

## Attributes

- x
Other tuple to compare.

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala

Greater-then '>' operator for tuples.

Greater-then '>' operator for tuples.

## Attributes

- x
Other tuple to compare.

- Note:
Tuples must have the same arity.

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala

Greater-then '>' operator for `int`

.

Greater-then '>' operator for `int`

.

## Attributes

- x
Other tuple to compare.

- 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.

## Attributes

- x
Other tuple to compare.

- 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`

.

## Attributes

- x
Other tuple to compare.

- Note:
Tuples must have the same arity.

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala

Creates a copy of this tuple.

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 type`Any`

,`x.equals(x)`

should return`true`

. - It is symmetric: for any instances
`x`

and`y`

of type`Any`

,`x.equals(y)`

should return`true`

if and only if`y.equals(x)`

returns`true`

. - It is transitive: for any instances
`x`

,`y`

, and`z`

of type`Any`

if`x.equals(y)`

returns`true`

and`y.equals(z)`

returns`true`

, then`x.equals(z)`

should return`true`

.

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)`

).

## Attributes

- that
the object to compare against this object for equality.

- 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.

## Attributes

- f
Mapping function.

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala

## Attributes

- Inherited from:
- Product

## Attributes

- Inherited from:
- Product

### Concrete fields

Area in characters for this dimension.

Height in characters (shortcut API).

Height in characters as float (shortcut API).

Whether width or height equals to zero.

Whether width and height are greater than zero.

Width in characters (shortcut API).

Width in characters as float (shortcut API).

### Inherited fields

Arity of this tuple.

## Attributes

- Inherited from:
- CPIntTuple (hidden)
- Source:
- CPIntTuple.scala