CodeGlyphX logo
CodeGlyphX

API Reference

Class

SymbolGeometry

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers sealed

Describes a detected symbol quadrilateral and its orientation.

Inheritance

  • Object
  • SymbolGeometry

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public SymbolGeometry(SymbolPoint topLeft, SymbolPoint topRight, SymbolPoint bottomRight, SymbolPoint bottomLeft) #

Creates symbol geometry from four corners in reading order.

Parameters

topLeft CodeGlyphX.SymbolPoint requiredposition: 0
topRight CodeGlyphX.SymbolPoint requiredposition: 1
bottomRight CodeGlyphX.SymbolPoint requiredposition: 2
bottomLeft CodeGlyphX.SymbolPoint requiredposition: 3

Methods

public static SymbolGeometry FromBounds(SymbolBounds bounds) #
Returns: SymbolGeometry

Creates axis-aligned symbol geometry from a bounding box.

Parameters

bounds CodeGlyphX.SymbolBounds requiredposition: 0

Properties

public SymbolPoint TopLeft { get; } #

Gets the top-left corner.

public SymbolPoint TopRight { get; } #

Gets the top-right corner.

public SymbolPoint BottomRight { get; } #

Gets the bottom-right corner.

public SymbolPoint BottomLeft { get; } #

Gets the bottom-left corner.

public SymbolBounds Bounds { get; } #

Gets the axis-aligned bounds enclosing all four corners.

public Double RotationDegrees { get; } #

Gets the clockwise rotation in degrees, normalized to the range [0, 360).