NevronOpenVision
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
    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