Area

Extends
Shape
Methods
6
Fields
None

Getting one

Area.new()

Methods

MethodReturnsDescription
add(Area)()Union with rhs.
subtract(Area)()Remove rhs.
intersect(Area)()Keep only the overlap with rhs.
exclusiveOr(Area)()Keep what exactly one of the two covers.
isEmpty()booleanWhether the region is empty.
new()Area() -> Area: The empty region.
new(Shape)Area

Returned by

MethodReturnsDescription
AreaClass.newArea() -> Area: The empty region.

Method details

isEmpty

isEmpty: (Area) -> boolean

Whether the region is empty.

new

new: (() -> Area) & ((Shape) -> Area)

() -> Area: The empty region.

(Shape) -> Area: The region s encloses, under its winding rule.