Use consistent measurements and valid geometric assumptions
Keep linear inputs in a consistent unit, verify that side lengths or coordinate points can form the stated shape, and treat sketches as explanatory unless explicitly marked to scale. Coordinate formulas can become unstable for nearly degenerate shapes, so invalid or nearly collinear inputs are rejected rather than silently returning misleading values.