A position on screen.
Normally given in points (logical pixels).
Mathematically this is known as a “point”, but the term position was chosen so not to conflict with the unit (one point = X physical pixels).
How far to the right.
How far down.
The zero position, the origin.
The top left corner in a GUI.
The vector from origin to this position.
p.to_vec2() is equivalent to
p - Pos2::default().
pub fn distance_sq(self, other: Pos2) -> f32
othervalues to be equal, and is used by