ExtensionsIsRectangle Method
Try to find out it is a rectangle. This requires sorted lines for each side of the rectangle.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static bool IsRectangle(
this IPolyClass this,
out double angle,
int precision = 3
)
<ExtensionAttribute>
Public Shared Function IsRectangle (
this As IPolyClass,
<OutAttribute> ByRef angle As Double,
Optional precision As Integer = 3
) As Boolean
public:
[ExtensionAttribute]
static bool IsRectangle(
IPolyClass^ this,
[OutAttribute] double% angle,
int precision = 3
)
[<ExtensionAttribute>]
static member IsRectangle :
this : IPolyClass *
angle : float byref *
?precision : int
(* Defaults:
let _precision = defaultArg precision 3
*)
-> bool
- this IPolyClass
- IPolyClass to calculate the rectangle check.
- angle Double
-
- precision Int32 (Optional)
- Compare values with precision digits by rounding are used.
BooleanTrue if the polygon is a rectangle.In Visual Basic and C#, you can call this method as an instance method on any object of type
IPolyClass. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).