Class RotatedBox
Inheritance
object
RotatedBox
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SaigeVision.Net.V2
Assembly: SaigeVision.Net.V2.dll
Syntax
public class RotatedBox
Constructors
View SourceRotatedBox(PointF, PointF[], double, double, double)
생성자입니다
Declaration
public RotatedBox(PointF center, PointF[] points, double width, double height, double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | center | 중심점 좌표 |
| PointF[] | points | 직사각형의 꼭지점 좌표입니다. 좌표 값은 |
| double | width | 너비 |
| double | height | 높이 |
| double | angle | 각도값(도) |
Properties
View SourceAngle
직사각형이 시계 방향으로 회전한 각도입니다.
단위는 '도'입니다.
Declaration
public double Angle { get; }
Property Value
| Type | Description |
|---|---|
| double |
Center
직사각형의 중심점 좌표입니다.
Declaration
public PointF Center { get; }
Property Value
| Type | Description |
|---|---|
| PointF |
Height
직사각형의 높이입니다.
Declaration
public double Height { get; }
Property Value
| Type | Description |
|---|---|
| double |
Points
직사각형의 꼭지점 좌표입니다.
좌표 값은 {x1, y1, x2, y2, x3, y3, x4, y4}입니다.
1번 점부터 4번 점까지의 순서는 회전하기 전의 직사각형을 기준으로 합니다.
1번 점은 회전하기 전 직사각형의 왼쪽 아래 점이며, 1번 점부터 시계 방향 순서로 2번, 3번, 4번 점이 이어집니다.
Declaration
public PointF[] Points { get; }
Property Value
| Type | Description |
|---|---|
| PointF[] |
Width
직사각형의 너비입니다.
Declaration
public double Width { get; }
Property Value
| Type | Description |
|---|---|
| double |
X
직사각형의 좌측 상단의 X 좌표입니다.
Declaration
public double X { get; }
Property Value
| Type | Description |
|---|---|
| double |
Y
직사각형의 좌측 상단의 Y 좌표입니다.
Declaration
public double Y { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceGetRotatedBox(SaigeRotatedBox)
Engine으로 부터 받은 SaigeRotatedBox 을 RotatedBox 형태로 변경해주는 기능 제공
Declaration
public static RotatedBox GetRotatedBox(SaigeRotatedBox saigeRotatedBox)
Parameters
| Type | Name | Description |
|---|---|---|
| SaigeRotatedBox | saigeRotatedBox | 엔진으로 부터 받은 SaigeRotatedBox값 |
Returns
| Type | Description |
|---|---|
| RotatedBox |