VF_hypotVVD_hypotVVE_hypotV
VFx_hypotVVDx_hypotVVEx_hypotV
FunctionPythagoras "hypotenuse" function.
Syntax C/C++#include <VFmath.h>
int VF_hypotV( fVector Z, fVector X, fVector Y, ui size );
int VFx_hypotV( fVector Z, fVector X, fVector Y, ui size, float A, float B );
C++ VecObj#include <OptiVec.h>
int vector<T>::hypotV( const vector<T>& X, const vector<T>& Y );
int vector<T>::x_hypotV( const vector<T>& X, const vector<T>& Y, const T& A, const T& B );
Pascal/Delphiuses VFmath;
function VF_hypotV( Z, X, Y:fVector; size:UIntSize ): IntBool;
function VFx_hypotV( Z, X, Y:fVector; size:UIntSize; A, B:Single ): IntBool;
Descriptionnormal version: Yi = sqrt( Xi2 + Yi2 )
expanded version: Yi = sqrt( (A*Xi+B)2 + Yi2 )
These are variants of the Pythagoras formula for the hypotenuse of a right triangle.
Error handlingOVERFLOW errors lead to a default result of HUGE_VAL. (Intermediate overflows are avoided by appropriate scaling.)
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero).
See alsoVF_redC,   VF_visC,   VCF_abs,   hypot

VectorLib Table of Contents  OptiVec home