Safe Haskell | None |
---|---|

Language | Haskell2010 |

- dualLine :: Num r => Point 2 r -> Line 2 r
- dualPoint :: (Fractional r, Eq r) => Line 2 r -> Maybe (Point 2 r)
- dualPoint' :: (Fractional r, Eq r) => Line 2 r -> Point 2 r

# Standard Point-Line duality in R^2

dualPoint :: (Fractional r, Eq r) => Line 2 r -> Maybe (Point 2 r) Source

Returns Nothing if the input line is vertical Maps a line l: y = ax + b to a point (a,-b)

dualPoint' :: (Fractional r, Eq r) => Line 2 r -> Point 2 r Source

Pre: the input line is not vertical