TResultPointHelpers Class

Definition

in order to implement TResultPoint as an interface all static methods have been moved in this static class. this class contains also the CreateResultPoint method that must be used in place of the actual class constructor

Delphi
type TResultPointHelpers = class(TObject)
Inheritance
TObject
TResultPointHelpers
Derived

Methods

CreateResultPoint

Initializes a new instance of TResultPoint and returns its IResultPoint interface

CreateResultPoint(Single, Single)

Initializes a new instance of TResultPoint and returns its IResultPoint interface

crossProductZ(IResultPoint, IResultPoint, IResultPoint)

Returns the z component of the cross product between vectors BC and BA.

distance(IResultPoint, IResultPoint)

calculates the distance between two points

orderBestPatterns(TArray<IResultPoint>)

Orders an array of three ResultPoints in an order [A,B,C] such that AB is less than AC and BC is less than AC and the angle between BC and BA is less than 180 degrees.