SVMeasure.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Last edited by Bier on July 8, 1987
Contents: Routines for measuring slopes, angles, and similar quantities in Gargoyle3D scenes.
DIRECTORY
SV2d, SV3d;
SVMeasure: CEDAR DEFINITIONS =
BEGIN
Point3d: TYPE = SV3d.Point3d;
AzimuthOfPoints: PROC [p0, p1: Point3d] RETURNS [degrees: REAL];
Returns azimuth (angle from the z=0 plane) as a positive number in [0..180).
SlopeOfPoints: PROC [p0, p1: Point3d] RETURNS [degrees: REAL];
Returns slope (angle from the y=0 plane) as a positive number in [0..180).
AzimuthAndSlopeOfPoints: PROC [p0, p1: Point3d] RETURNS [azimuth, slope: REAL];
Returns azimuth and slope.
DistanceBetweenPoints: PROC [p0, p1: Point3d] RETURNS [lengthInDots: REAL];
Returns the Euclidean distance between two points in screen dots.
END.