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


In This Topic
    TryCreateFromThreePointsAngleAndRatio Method (NEllipseSegment)
    In This Topic
    Tries to create an ellipse segment, which passes throw the specified points and satisfies the angle and ratio parameters.
    Syntax
    'Declaration
     
    
    Public Shared Function TryCreateFromThreePointsAngleAndRatio( _
       ByVal start As NPoint, _
       ByVal control As NPoint, _
       ByVal end As NPoint, _
       ByVal angle As System.Double, _
       ByVal ratio As System.Double, _
       ByRef segment As NEllipseSegment _
    ) As System.Boolean
    'Usage
     
    
    Dim start As NPoint
    Dim control As NPoint
    Dim end As NPoint
    Dim angle As System.Double
    Dim ratio As System.Double
    Dim segment As NEllipseSegment
    Dim value As System.Boolean
     
    value = NEllipseSegment.TryCreateFromThreePointsAngleAndRatio(start, control, end, angle, ratio, segment)
    public static System.bool TryCreateFromThreePointsAngleAndRatio( 
       NPoint start,
       NPoint control,
       NPoint end,
       System.double angle,
       System.double ratio,
       out NEllipseSegment segment
    )

    Parameters

    start
    control
    end
    angle
    angle between major ellipse axis and X-axis (in radians)
    ratio
    ratio between the major and minor ellipse axes, must be >= 1
    segment
    resulting ellipse segment. 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