Show / Hide Table of Contents

Class RadPoint

Inheritance
System.Object
RadPoint
Namespace: Eco.Shared.Gameplay
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
Type Description
Vector2

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
Type Description
RadPoint

Multiply(RadPoint, Single)

Declaration
public static RadPoint operator *(RadPoint a, float scalar)
Parameters
Type Name Description
RadPoint a
System.Single scalar
Returns
Type Description
RadPoint

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾