- #1
renucrew
- 6
- 0
Hi
Given a simple linear equation and the extents of a rectangle, is there a neat way of finding the length of the line section that is contained within the rectangle?
The only general method i can think of would involve a bunch of conditional statements to determine whether the line intersects each side of the rectangle.
∞
Given a simple linear equation and the extents of a rectangle, is there a neat way of finding the length of the line section that is contained within the rectangle?
The only general method i can think of would involve a bunch of conditional statements to determine whether the line intersects each side of the rectangle.
∞