---
layout: default-layout
title: class CCorner - Dynamsoft Core Module C++ Edition API Reference
description: API reference for the CCorner class in Dynamsoft Core C++ Edition, representing a corner point with its type and the two intersecting edges.
keywords: corner, c++
needAutoGenerateSidebar: true
---

# CCorner

CCorner is a structure in an image consisting of two line segments and intersection point. A Corner represents a point at which the image's brightness or color sharply changes.

## Definition

*Namespace:* dynamsoft::basic_structures

*Assembly:* DynamsoftCore

```cpp
class CCorner 
```

## Attributes
  
| Attribute | Type |
|---------- | ---- |
| [`type`](#type) | *CornerType* |
| [`intersection`](#intersection) | *CPoint* |
| [`line1`](#line1) | *CLineSegment* |
| [`line2`](#line2) | *CLineSegment* |

### type

The type of the corner.

```cpp
CornerType type
```

**See Also**

[CornerType]({{ site.dcvb_cpp_api }}core/enum-corner-type.html?src=cpp&&lang=cpp)

### intersection

The intersection point of the corner.

```cpp
CPoint intersection
```

**See Also**

[CPoint]({{ site.dcvb_cpp_api }}core/basic-structures/point.html)

### line1

One of the line connected to the corner.

```cpp
CLineSegment line1
```

**See Also**

[CLineSegment]({{ site.dcvb_cpp_api }}core/basic-structures/line-segment.html)

### line2

One of the line connected to the corner.

```cpp
CLineSegment line2
```

**See Also**

[CLineSegment]({{ site.dcvb_cpp_api }}core/basic-structures/line-segment.html)
