Struct Polar2DCoordinate
A polar coordinate that can be used to define positions relative to the center of a circle/quad.
Namespace: AS2.Visuals
Assembly: .dll
Syntax
public struct Polar2DCoordinate
Constructors
| Edit this page View SourcePolar2DCoordinate(float, float, bool)
Declaration
public Polar2DCoordinate(float angleDegrees, float radiusPercentage, bool isValid = true)
Parameters
Type | Name | Description |
---|---|---|
float | angleDegrees | |
float | radiusPercentage | |
bool | isValid |
Fields
| Edit this page View SourceangleDegrees
The angle of the coordinate. For most cases 0 is straight upwards.
Declaration
public float angleDegrees
Field Value
Type | Description |
---|---|
float |
isValid
Declaration
private bool isValid
Field Value
Type | Description |
---|---|
bool |
radiusPercentage
The radius of the coordinate. Max: 1.0f
(outer border), min 0.0f
(center).
Declaration
public float radiusPercentage
Field Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceDiscard()
Invalidates the coordinate.
Declaration
public void Discard()
Reset()
Resets the values to invalid defaults.
Declaration
public void Reset()