SFO.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Michael Plass, August 14, 1986 4:16:16 pm PDT
Out-of-line versions of SF.mesa procedures, for use in debugger.
Box operations
maxBox: Box ~ [min: minVec, max: maxVec];
BoxAction:
TYPE ~
PROC [box: Box];
BoxGenerator:
TYPE ~
PROC [boxAction: BoxAction];
Nonempty:
PROC [box: Box]
RETURNS [
BOOL] ~ {
RETURN [
SF.Nonempty[box]] };
Empty:
PROC [box: Box]
RETURNS [
BOOL] ~ {
RETURN [
SF.Empty[box]] };
Intersect:
PROC [box1, box2: Box]
RETURNS [Box] ~ {
RETURN [
SF.Intersect[box1, box2]] };
Disjoint:
PROC [box1, box2: Box]
RETURNS [
BOOL] ~ {
RETURN [
SF.Disjoint[box1, box2]] };
SizeF:
PROC [box: Box]
RETURNS [
CARDINAL] ~ {
RETURN [
SF.SizeF[box]] };
SizeS:
PROC [box: Box]
RETURNS [
CARDINAL] ~ {
RETURN [
SF.SizeS[box]] };
Size:
PROC [box: Box]
RETURNS [Vec] ~ {
RETURN [
SF.Size[box]] };
Inside:
PROC [inner, outer: Box]
RETURNS [
BOOL] ~ {
RETURN [
SF.Inside[inner, outer]] };
Displace:
PROC [box: Box, t: Vec]
RETURNS [Box] ~ {
RETURN [
SF.Displace[box, t]] };
In:
PROC [vec: Vec, box: Box]
RETURNS [
BOOL] ~ {
RETURN [
SF.In[vec, box]] };