Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NEllipse Structure / TryCreateFromThreePointsAngleAndRatio Method
angle (in radians)
ratio between the major and minor ellipse axes, must be >= 1
resulting ellipse, valid only if method returns true


In This Topic
    TryCreateFromThreePointsAngleAndRatio Method (NEllipse)
    In This Topic
    Tries to create a normalized ellipse from three points, angle between the ellipse major axis and the X-axis and ratio between the major and minor axes. Returns false if the points are colinear, or any pair of points are coincident or ratio is zero.
    Syntax
    'Declaration
     
    
    Public Shared Function TryCreateFromThreePointsAngleAndRatio( _
       ByVal pt1 As NPoint, _
       ByVal pt2 As NPoint, _
       ByVal pt3 As NPoint, _
       ByVal angle As System.Double, _
       ByVal ratio As System.Double, _
       ByRef ellipse As NEllipse _
    ) As System.Boolean
    'Usage
     
    
    Dim pt1 As NPoint
    Dim pt2 As NPoint
    Dim pt3 As NPoint
    Dim angle As System.Double
    Dim ratio As System.Double
    Dim ellipse As NEllipse
    Dim value As System.Boolean
     
    value = NEllipse.TryCreateFromThreePointsAngleAndRatio(pt1, pt2, pt3, angle, ratio, ellipse)
    public static System.bool TryCreateFromThreePointsAngleAndRatio( 
       NPoint pt1,
       NPoint pt2,
       NPoint pt3,
       System.double angle,
       System.double ratio,
       out NEllipse ellipse
    )

    Parameters

    pt1
    pt2
    pt3
    angle
    angle (in radians)
    ratio
    ratio between the major and minor ellipse axes, must be >= 1
    ellipse
    resulting ellipse, valid only if method returns true

    Return Value

    true if succeeded, otherwise false
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also