Class RadPoint
Inheritance
System.Object
RadPoint
Assembly: Eco.Shared.dll
Syntax
[Serialized]
public sealed class RadPoint : ValueType
Constructors
RadPoint(Vector2, Single)
Declaration
public RadPoint(Vector2 pos, float radius)
Parameters
Type |
Name |
Description |
Vector2 |
pos |
|
System.Single |
radius |
|
Fields
Pos
Declaration
public readonly Vector2 Pos
Field Value
Radius
Declaration
public readonly float Radius
Field Value
Type |
Description |
System.Single |
|
Properties
RadiusSq
Declaration
public float RadiusSq { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Covers(Vector2)
Returns true if this position is within the range of this point.
Declaration
public bool Covers(Vector2 testPos)
Parameters
Type |
Name |
Description |
Vector2 |
testPos |
|
Returns
Type |
Description |
System.Boolean |
|
Covers(Single, Vector2)
Check coverage within a given percent
Declaration
public bool Covers(float percent, Vector2 testPos)
Parameters
Type |
Name |
Description |
System.Single |
percent |
|
Vector2 |
testPos |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
Addition(RadPoint, Single)
Declaration
public static RadPoint operator +(RadPoint a, float val)
Parameters
Type |
Name |
Description |
RadPoint |
a |
|
System.Single |
val |
|
Returns
Multiply(RadPoint, Single)
Declaration
public static RadPoint operator *(RadPoint a, float scalar)
Parameters
Type |
Name |
Description |
RadPoint |
a |
|
System.Single |
scalar |
|
Returns
Extension Methods