Method Create
Create(OasysUnits.Length, OasysUnits.Length)
Creates a new IStadiumProfile profile from its Depth and Width.
Declaration
static IStadiumProfile Create(OasysUnits.Length depth, OasysUnits.Length width)
Parameters
Type | Name | Description |
---|---|---|
OasysUnits.Length | depth | Defines the profile's overall depth considering the side length of the rectangle and the radii of the semicircles on the two ends. |
OasysUnits.Length | width | Defines the profile's width (diameter of the semicircles). |
Returns
Type | Description |
---|---|
IStadiumProfile |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | When any of the dimensions is not a positive and finite value. |