Reference·JavaScript · @bimworks/viewercommonJavaScript

fitAlignment

Function in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Function

TypeScript#
function fitAlignment

Members#

Member Kind Description
fitAlignment Method The alignment that takes the move points of the pairs onto their onto points, by least squares over all pairs. With fewer pairs than allow needs it fits wh…

fitAlignment#

TypeScript#
fitAlignment(pairs: Iterable<AlignmentPair, any, any> | null, allow?: AlignmentFitKind, options?: { level?: number | null; scale?: number | null }): AlignmentFit | null

The alignment that takes the move points of the pairs onto their onto points, by least squares over all pairs. With fewer pairs than allow needs it fits what the pairs allow (one pair moves only); null without pairs. In float64, so millimetres survive survey coordinates.

Parameters#

Name Type Description
pairs Iterable<AlignmentPair, any, any> | null
allow AlignmentFitKind
options { level?: number | null; scale?: number | null }