/// Create a size based on this direction.
Create a size based on this direction.
Create a size based on this direction .
pub fn size2(&self, axis: Coord, cross_axis: Coord) -> Size {
        match self {
            Self::Horizontal => size2(axis, cross_axis),
            Self::Vertical => size2(cross_axis, axis),
        }
    }
pub fn size2 ( & self , axis : Coord , cross_axis : Coord ) -> Size { match self { Self :: Horizontal => size2 ( axis , cross_axis ) , Self :: Vertical => size2 ( cross_axis , axis ) , } }
Create a size based on this direction.
Create a size based on this direction .
&self
axis
Coord
cross_axis
Coord