Hi(adsbygoogle = window.adsbygoogle || []).push({});

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.

∞

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# The length of a line intersecting a rectangle - not just diagonal!

Loading...

Similar Threads for length line intersecting |
---|

A Family of curves tangent to a smooth distribution of lines |

B What is a straight line? |

**Physics Forums | Science Articles, Homework Help, Discussion**