Property | Type | Description | |
---|---|---|---|
Natural |
Method | Description | |
---|---|---|
AngleToDir ( double angle ) : Dir |
Returns the direction corresponding to the given angle in this basis.
|
|
AngleToTurn ( double angle ) : Turn |
Returns the turn corresponding to a rotation by the given angle in this basis.
|
|
DirToSignedAngle ( Dir direction ) : double |
Returns the smallest positive or negative angle corresponding to the given direction in this basis.
|
|
DirToUnsignedAngle ( Dir direction ) : double |
Returns the smallest non-negative angle corresponding to the given direction in this basis.
|
|
FromDirectionAndUnits ( Dir origin, double unitsPerTurn, bool isClockwisePositive ) : |
Returns a basis with a zero angle along the given direction, and units that satisfy the given constraints.
|
|
ToString ( ) : string | ||
TurnToAngle ( Turn turn ) : double |
Returns the angle corresponding to a rotation by the given turn in this basis.
|
Method | Description | |
---|---|---|
Basis ( double origin, double counterClockwiseRadiansPerUnit ) : System |
public DirToSignedAngle ( Dir direction ) : double | ||
direction | Dir | |
return | double |
public DirToUnsignedAngle ( Dir direction ) : double | ||
direction | Dir | |
return | double |
public static FromDirectionAndUnits ( Dir origin, double unitsPerTurn, bool isClockwisePositive ) : |
||
origin | Dir | |
unitsPerTurn | double | |
isClockwisePositive | bool | |
return |