TryCreateFromThreePointsAngleAndRatio Method (NEllipse)
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.
'Declaration
Public Shared Function TryCreateFromThreePointsAngleAndRatio( _
ByVal As NPoint, _
ByVal As NPoint, _
ByVal As NPoint, _
ByVal As System.Double, _
ByVal As System.Double, _
ByRef 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 ,
NPoint ,
NPoint ,
System.double ,
System.double ,
out NEllipse
)
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
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)