pub trait HasPosition { type Scalar: SpadeNum; // Required method fn position(&self) -> Point2<Self::Scalar>; }
An object with a position.
Vertices need to implement this trait to allow being inserted into triangulations.
The number type used by this coordinate type.
Returns the position of this object.
Note: It is assumed that the position doesn’t change once it has been inserted into a triangulation. Failing this requirement can lead to crashes, invalid results or endless loops.