pub fn position(&self, pos: &Point) -> Coord {
        match self {
            Self::Horizontal => pos.x,
            Self::Vertical => pos.y,
        }
    }
/// For a point, return the component along the axis.
For a point, return the component along the axis.
For a point return the component along the axis .
pub fn position(&self, pos: &Point) -> Coord {
        match self {
            Self::Horizontal => pos.x,
            Self::Vertical => pos.y,
        }
    }
pub fn position ( & self , pos : & Point ) -> Coord { match self { Self :: Horizontal => pos . x , Self :: Vertical => pos . y , } }
For a point, return the component along the axis.
For a point return the component along the axis .
&self
pos
&Point
&self
pos
&Point