Struct Ellipse
The data that defines the ellipse of the screen boundary.
Inherited Members
Namespace: TargetIndicators
Assembly: TargetIndicators.dll
Syntax
public struct Ellipse
Constructors
Ellipse(Vector2, float, float)
Constructs ellipse data by the center and axis lengths. This is provided by the TargetIndicatorManager.
Declaration
public Ellipse(Vector2 center, float semiMajorAxisLength, float semiMinorAxisLength)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | center | The coordinates of the center of the ellipse in screen space. |
float | semiMajorAxisLength | The length of the semi major axis, or half of the horizontal diameter. |
float | semiMinorAxisLength | The length of the semi minor axis, or half of the vertical diameter. |
Properties
Center
The coordinates of the center of the ellipse in screen space.
Declaration
public readonly Vector2 Center { get; }
Property Value
Type | Description |
---|---|
Vector2 |
SemiMajorAxisLength
The length of the semi major axis, or half of the horizontal diameter.
Declaration
public readonly float SemiMajorAxisLength { get; }
Property Value
Type | Description |
---|---|
float |
SemiMinorAxisLength
The length of the semi minor axis, or half of the vertical diameter.
Declaration
public readonly float SemiMinorAxisLength { get; }
Property Value
Type | Description |
---|---|
float |