Cleanup
This commit is contained in:
+7
-2
@@ -16,8 +16,7 @@ module Geometry
|
||||
, module Geometry.Vector
|
||||
, module Geometry.Vector3D
|
||||
, module Geometry.LHS
|
||||
)
|
||||
where
|
||||
) where
|
||||
import Geometry.Data
|
||||
import Geometry.Intersect
|
||||
import Geometry.Bezier
|
||||
@@ -67,6 +66,12 @@ rectNSWE !n !s !w !e = [V2 w n, V2 w s, V2 e s, V2 e n]
|
||||
rectWH :: Float -> Float -> [Point2]
|
||||
rectWH w h = rectNSWE h (-h) (-w) w
|
||||
|
||||
rectXH :: Float -> Float -> [Point2]
|
||||
rectXH x h = rectNSWE h (-h) 0 x
|
||||
|
||||
rectXY :: Float -> Float -> [Point2]
|
||||
rectXY x y = rectNSWE y 0 0 x
|
||||
|
||||
square :: Float -> [Point2]
|
||||
square n = rectWH n n
|
||||
|
||||
|
||||
Reference in New Issue
Block a user