Table of contents

Enumeration CornerType

CornerType categorizes the nature of a corner based on the intersection of its adjoining sides.

  • Objective-C
  • Swift
typedef NS_ENUM(NSInteger, DSCornerType)
{
   /** The corner is formed by two intersecting line segments. */
   DSCornerTypeNormalIntersected,
   /** The corner is formed by two T intersecting line segments. */
   DSCornerTypeTIntersected,
   /** The corner is formed by two cross intersecting line segments. */
   DSCornerTypeCrossIntersected,
   /** The two line segments are not intersected but they definitely consist a corner. */
   DSCornerTypeNotIntersected
};
public enum CornerType : Int
{
   /** The corner is formed by two intersecting line segments. */
   case intersected
   /** The corner is formed by two T intersecting line segments. */
   case tIntersected
   /** The corner is formed by two cross intersecting line segments. */
   case crossIntersected
   /** The two line segments are not intersected but they definitely consist a corner. */
   case notIntersected
};

This page is compatible for: