findBestAlignment Method

Summary

Finds the closest match to

frameToAlign** from the array
frames**.

Syntax
TypeScript
JavaScript
findBestAlignment = function( 
   frameToAlign, 
   frames 
) 
static findBestAlignment( 
   frameToAlign: FramePosition, 
   frames: FramePosition[] 
): number; 

Parameters

frameToAlign

The reference frame.

frames

An array of frame that will be search for a closest match to frameToAlign.

Return Value

Value that represents the index of the closest match item in frames to frameToAlign.

Remarks

The closest match is based on the frames position and orientation of the frame.

If no match was found, due to extreme difference in orientation, then this method will return -1.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.