ExtensionsIsOctagon Method

Try to find out it is a octagon. This requires sorted lines for each side of the octagon.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static bool IsOctagon(
	this IPolyClass this,
	out double width,
	out double height,
	out double cornerSize,
	out double rotation,
	int precision = 3
)

Parameters

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.

Return Value

Boolean
True if the polygon is a octagon.

Usage Note

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).

See Also