SymbDistCrvLine

Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index Return to Main Contents
 

NAME

SymbDistCrvLine()  

SYNOPSIS

symb_lib/distance.c:166

CagdRType SymbDistCrvLine(CagdCrvStruct *Crv,
                          CagdLType Line,
                          CagdBType MinDist,
                          CagdRType Epsilon)
 

DESCRIPTION

Given a curve and a line, finds the nearest point (if MinDist) or the farest location (if MinDist FALSE) from the curve to the given line. Returned is the parameter value of the curve. Let Crv be (x(t), y(t)). By substituting x(t) and y(t) into the line equation, we derive the distance function. Its zero set, combined with the zero set of its derivative provide the needed extreme distances.  

PARAMETERS:

Crv: The curve to find its nearest (farest) point to Line.

Line: The line to find the nearest (farest) point on Crv to it.

MinDist: If TRUE nearest points is needed, if FALSE farest.

Epsilon: Accuracy of computation.  

FUNCTION RETURN VALUE

CagdRType: Parameter value in the parameter space of Crv of the nearest (farest) point to line Line.

 

ORIGIN

(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS:
FUNCTION RETURN VALUE
ORIGIN

This document was created by man2html, using the manual pages.
Time: 07:28:06 GMT, July 20, 2024