IsParallel checks if two lines are parallel or not.
(l1, l2 *Line)
| 40 | |
| 41 | // IsParallel checks if two lines are parallel or not. |
| 42 | func IsParallel(l1, l2 *Line) bool { |
| 43 | return Slope(l1) == Slope(l2) |
| 44 | } |
| 45 | |
| 46 | // IsPerpendicular checks if two lines are perpendicular or not. |
| 47 | func IsPerpendicular(l1, l2 *Line) bool { |