ExtensionsIsOctagon Method
Try to find out it is a octagon. This requires sorted lines for each side of the octagon.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static bool IsOctagon(
this IPolyClass this,
out double width,
out double height,
out double cornerSize,
out double rotation,
int precision = 3
)
<ExtensionAttribute>
Public Shared Function IsOctagon (
this As IPolyClass,
<OutAttribute> ByRef width As Double,
<OutAttribute> ByRef height As Double,
<OutAttribute> ByRef cornerSize As Double,
<OutAttribute> ByRef rotation As Double,
Optional precision As Integer = 3
) As Boolean
public:
[ExtensionAttribute]
static bool IsOctagon(
IPolyClass^ this,
[OutAttribute] double% width,
[OutAttribute] double% height,
[OutAttribute] double% cornerSize,
[OutAttribute] double% rotation,
int precision = 3
)
[<ExtensionAttribute>]
static member IsOctagon :
this : IPolyClass *
width : float byref *
height : float byref *
cornerSize : float byref *
rotation : float byref *
?precision : int
(* Defaults:
let _precision = defaultArg precision 3
*)
-> bool
- this IPolyClass
- IPolyClass to calculate the octagon check.
- width Double
-
- height Double
-
- cornerSize Double
-
- rotation Double
-
- precision Int32 (Optional)
- Compare values with precision digits by rounding are used.
BooleanTrue if the polygon is a octagon.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).