Example
Classify a point against four clipping bounds.
highlighted = computed this step
Step 1 — Set up
Set up the exact input values.
rect and point({’xmin’: Fraction(1, 1), ’xmax’: Fraction(5, 1), ’ymin’: Fraction(1, 1), ’ymax’: Fraction(4, 1)}, (3, 2))
Step 2 — x bounds
Compute the highlighted value.
xmin <= x <= xmax(True, True)
Step 3 — y bounds
Compute the highlighted value.
ymin <= y <= ymax(True, True)
Step 4 — Result
State the structural verdict.
verdictinside
point-in-rectangle
A point is inside a rectangular viewport only when its x and y coordinates both stay within the rectangle's min and max bounds.