math.rectangles vocabulary - Factor Documentation (original) (raw)

math.rectangles vocabulary
Factor handbook » Vocabulary index

Documentation
Rectangles

Metadata

Parents: math
Tags: math

Words

Tuple classes

Class Superclass Slots
rect tuple loc dim

Parsing words

Word Syntax
RECT:

Generic words

Word Stack effect
contains-point? ( point rect -- ? )
contains-rect? ( rect1 rect2 -- ? )

Ordinary words

Word Stack effect
(rect-intersect) ( rect rect -- array array )
(rect-union) ( rect rect -- array array )
( loc ext -- rect )
( loc dim -- rect )
( -- rect )
offset-rect ( rect loc -- newrect )
point>rect ( loc -- rect )
rect-bounds ( rect -- loc dim )
rect-center ( rect -- center )
rect-containing ( points -- rect )
rect-extent ( rect -- loc ext )
rect-intersect ( rect1 rect2 -- newrect )
rect-min ( rect dim -- rect' )
rect-union ( rect1 rect2 -- newrect )
set-rect-bounds ( rect1 rect -- )
with-rect-extents ( ..a+b rect1 rect2 loc-quot: ( ..a loc1 loc2 -- ..c ) ext-quot: ( ..b ext1 ext2 -- ..d ) -- ..c+d )

Class predicate words

Word Stack effect
rect? ( object -- ? )

Files

resource:basis/math/rectangles/rectangles.factor
resource:basis/math/rectangles/rectangles-docs.factor
resource:basis/math/rectangles/rectangles-tests.factor

Metadata files

resource:basis/math/rectangles/tags.txt

Children from resource:basis

Vocabulary Summary
math.rectangles.positioning
math.rectangles.prettyprint