
# PolySegment class

*No description yet.*

```csharp
public class PolySegment : IPolySegment
```

**Namespace:** PCB · **Assembly:** Altium.SDK.Interfaces

**Implements:** [IPolySegment](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPolySegment.md)

## Constructors

```csharp
public PolySegment();
public PolySegment(SPolySegment argVal);
public PolySegment(IPolySegment argVal);
```

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [Angle1](#angle1) | `double` | get; set |  |
| [Angle2](#angle2) | `double` | get; set |  |
| [Cx](#cx) | `int` | get; set |  |
| [Cy](#cy) | `int` | get; set |  |
| [Data](#data) | [SPolySegment](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/SPolySegment.md) | get; set |  |
| [Kind](#kind) | [TPolySegmentType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TPolySegmentType.md) | get; set |  |
| [Radius](#radius) | `int` | get; set |  |
| [Vx](#vx) | `int` | get; set |  |
| [Vy](#vy) | `int` | get; set |  |

### Angle1

*No description yet.*

```csharp
double Angle1 { get; set; }
```

**Type:** `double` · **Access:** read/write

### Angle2

*No description yet.*

```csharp
double Angle2 { get; set; }
```

**Type:** `double` · **Access:** read/write

### Cx

*No description yet.*

```csharp
int Cx { get; set; }
```

**Type:** `int` · **Access:** read/write

### Cy

*No description yet.*

```csharp
int Cy { get; set; }
```

**Type:** `int` · **Access:** read/write

### Data

*No description yet.*

```csharp
SPolySegment Data { get; set; }
```

**Type:** [SPolySegment](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/SPolySegment.md) · **Access:** read/write

### Kind

*No description yet.*

```csharp
TPolySegmentType Kind { get; set; }
```

**Type:** [TPolySegmentType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TPolySegmentType.md) · **Access:** read/write

### Radius

*No description yet.*

```csharp
int Radius { get; set; }
```

**Type:** `int` · **Access:** read/write

### Vx

*No description yet.*

```csharp
int Vx { get; set; }
```

**Type:** `int` · **Access:** read/write

### Vy

*No description yet.*

```csharp
int Vy { get; set; }
```

**Type:** `int` · **Access:** read/write

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [GetAngle1](#getangle1) | `double` |  |
| [GetAngle2](#getangle2) | `double` |  |
| [GetCx](#getcx) | `int` |  |
| [GetCy](#getcy) | `int` |  |
| [GetKind](#getkind) | [TPolySegmentType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TPolySegmentType.md) |  |
| [GetRadius](#getradius) | `int` |  |
| [GetVx](#getvx) | `int` |  |
| [GetVy](#getvy) | `int` |  |

### GetAngle1

*No description yet.*

```csharp
double GetAngle1();
```

**Returns:** `double`

### GetAngle2

*No description yet.*

```csharp
double GetAngle2();
```

**Returns:** `double`

### GetCx

*No description yet.*

```csharp
int GetCx();
```

**Returns:** `int`

### GetCy

*No description yet.*

```csharp
int GetCy();
```

**Returns:** `int`

### GetKind

*No description yet.*

```csharp
TPolySegmentType GetKind();
```

**Returns:** [TPolySegmentType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TPolySegmentType.md)

### GetRadius

*No description yet.*

```csharp
int GetRadius();
```

**Returns:** `int`

### GetVx

*No description yet.*

```csharp
int GetVx();
```

**Returns:** `int`

### GetVy

*No description yet.*

```csharp
int GetVy();
```

**Returns:** `int`

## Returned by

[IPCB_ConfinementConstraint.Segments](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ConfinementConstraint.md#segments), [IPCB_PadTemplateStackData.CustomShape](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PadTemplateStackData.md#customshape), [IPCB_Polygon.Segments](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Polygon.md#segments), [IPCB_RegionShape.ShapeSegment](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_RegionShape.md#shapesegment), [IPCB_SplitPlane.Segments](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_SplitPlane.md#segments)

## Accepted by

[IPCB_PadTemplateStackData.AddSegment](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PadTemplateStackData.md#addsegment)
