ScopeIntersect()

Summary

Creates a scope that is the intersection of the input scopes.

Syntax

new_scope = ScopeIntersect(scope scp1, scope scp2)

Argument Contents
scp1 First scope
scp2 Second scope

Returns

A scope that covers the intersection of the area covered by the two input scopes.

Notes

  • ScopeIntersect() is completely symmetric; the result is the same if scp1 and scp2 are interchanged.

  • If scp1 and scp2 do not intersect, ScopeIntersect() returns null.

See Also

Function Summary
ScopeInScope() Checks to see if one scope is completely contained in another
ScopeOnScope() Checks to see if one scope overlaps another
ScopeUnion() Creates a scope that encompasses the entire area covered by two input scopes