Represents the dimensions of an object, or more generally, the displacement between two Basic_positions.
Note that much of the library uses geometry::Dimensions, which is a type alias for Basic_dimensions<int>.
Definition at line 73 of file ge211_forward.h.
Public Types | |
using | Coordinate = T |
The coordinate type for the dimensions. More... | |
Public Member Functions | |
template<class U > | |
Basic_dimensions< U > | into () const noexcept(is_nothrow_convertible< Coordinate, U >()) |
Converts a Basic_dimensions to another coordinate type. More... | |
Public Attributes | |
Coordinate | width |
The width of the object. | |
Coordinate | height |
The height of the object. | |
using Coordinate = T |
The coordinate type for the dimensions.
This is an alias of type parameter T
.
Definition at line 22 of file ge211_geometry.h.
|
inlinenoexcept |
Converts a Basic_dimensions to another coordinate type.
For example:
Definition at line 35 of file ge211_geometry.h.