Class Geometry.Polygon.Rectangle
Represents a rectangle polygon.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Oasys.Common.Logic
Assembly: Oasys.Common.dll
Syntax
public class Rectangle : Geometry.Polygon
Constructors
Rectangle(Vector2, Vector2, Single)
Initializes a new instance of the Geometry.Polygon.Rectangle class.
Declaration
public Rectangle(Vector2 start, Vector2 end, float width)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector2 | start | The start. |
SharpDX.Vector2 | end | The end. |
System.Single | width | The width. |
Rectangle(Vector3, Vector3, Single)
Initializes a new instance of the Geometry.Polygon.Rectangle class.
Declaration
public Rectangle(Vector3 start, Vector3 end, float width)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector3 | start | The start. |
SharpDX.Vector3 | end | The end. |
System.Single | width | The width. |
Fields
End
The end
Declaration
public Vector2 End
Field Value
Type | Description |
---|---|
SharpDX.Vector2 |
Start
The start
Declaration
public Vector2 Start
Field Value
Type | Description |
---|---|
SharpDX.Vector2 |
Width
The width
Declaration
public float Width
Field Value
Type | Description |
---|---|
System.Single |
Properties
Direction
Gets the direction.
Declaration
public Vector2 Direction { get; }
Property Value
Type | Description |
---|---|
SharpDX.Vector2 | The direction. |
Perpendicular
Gets the perpendicular.
Declaration
public Vector2 Perpendicular { get; }
Property Value
Type | Description |
---|---|
SharpDX.Vector2 | The perpendicular. |
Methods
UpdatePolygon(Int32, Single)
Updates the polygon.
Declaration
public void UpdatePolygon(int offset = 0, float overrideWidth = -1F)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | offset | The offset. |
System.Single | overrideWidth | Width of the override. |