Default Constructible, Assignable, Equality Comparable
A::coordinate_type
The type of the coordinates p_{i}, . Operations +, -, * must be defined on this type. The coordinate type should also be convertible to type double.
A::difference_type
The type of the euclidean vector obtained by computing the difference between two Locations. difference_type is a model of Euclidean Vector.
L | A type that is a model of Location | |
a, b | Objects of type L | |
C | coordinate type: L::coordinate_type | |
i | object of type unsigned int |
L::dimension
Return type: | int | |
Semantics: | returns the dimension of locations of type L |
L(a)
Return type: | L | |
Postcondition: | L(a) is a copy of a |
L b(a)
Postcondition: | b is a copy of a |
b = a
Return type: | L | |
Postcondition: | b is a copy of a |
a[i]
Return type: | C | |
Precondition: | ||
Semantics: | returns the i^{th} coordinate of the Location |
a == b
Return type: | bool | |
Semantics: | checks if two locations are identical |
a - b
Return type: | a model of EuclideanVector | |
Semantics: | Computes the euclidean vector between two locations a and b |