contents next up previous
Next: Location Up: Basic concepts Previous: Container

Subsections


Euclidean Vector

An euclidean vector is represented by its Cartesian coordinates: (p0, p1,..., pd - 1) (in a d-dimensional vectorial space). It can be defined by the difference between two points (Locations), A and B: if A has coordinates (a0, a1,..., ad - 1) and B (b0, b1,..., bd - 1), then vector $ \bf AB$ = B - A has coordinates (b0 - a0, b1 - a1,..., bd - 1 - ad - 1).

The requirements of Euclidean Vector are very similar to those of Location, and could actually have been represented by a Location. However, an euclidean vector is very different from a point, or location, (from a mathematical point of view) and it would have been confusing to represent these two entities by the same concept.



Refinement of

Default Constructible, Assignable, Equality Comparable



Associated Types



Notations

A   A type that is a model of Euclidean Vector
a, b   Objects of type A
C   coordinate type: A::coordinate_type
i   object of type unsigned int



Valid Expressions



Models


contents next up previous
Next: Location Up: Basic concepts Previous: Container
nicolas
2002-05-07