[]
Divides a Length value using a specified value.
public static Length DivideBy(Length unit, float divisor)
Type | Name | Description |
---|---|---|
Length | unit | A dividend Length value. |
float | divisor | A float value indicating the divisor. |
Type | Description |
---|---|
Length | A new Length value representing the quotient. |
var length = new Length("2in");
var result = Length.DivideBy(length, 2); // 1in
Type | Condition |
---|---|
DivideByZeroException | Throws if |