Show / Hide Table of Contents

Class Rect

Inheritance
System.Object
Rect
Namespace: Eco.Shared.Math
Assembly: Eco.Shared.dll
Syntax
[Serialized]
public sealed class Rect : ValueType

Fields

Max

Declaration
public Vector2 Max
Field Value
Type Description
Vector2

Min

Declaration
public Vector2 Min
Field Value
Type Description
Vector2

One

Declaration
public static readonly Rect One
Field Value
Type Description
Rect

Properties

Bottom

Declaration
public float Bottom { get; }
Property Value
Type Description
System.Single

BottomLeft

Declaration
public Vector2 BottomLeft { get; }
Property Value
Type Description
Vector2

BottomRight

Declaration
public Vector2 BottomRight { get; }
Property Value
Type Description
Vector2

Center

Declaration
public Vector2 Center { get; }
Property Value
Type Description
Vector2

Height

Declaration
public float Height { get; }
Property Value
Type Description
System.Single

Left

Declaration
public float Left { get; }
Property Value
Type Description
System.Single

Right

Declaration
public float Right { get; }
Property Value
Type Description
System.Single

Size

Declaration
public Vector2 Size { get; }
Property Value
Type Description
Vector2

Top

Declaration
public float Top { get; }
Property Value
Type Description
System.Single

TopLeft

Declaration
public Vector2 TopLeft { get; }
Property Value
Type Description
Vector2

TopRight

Declaration
public Vector2 TopRight { get; }
Property Value
Type Description
Vector2

Width

Declaration
public float Width { get; }
Property Value
Type Description
System.Single

Methods

Contains(Rect)

Declaration
public bool Contains(Rect other)
Parameters
Type Name Description
Rect other
Returns
Type Description
System.Boolean

Contains(Vector2)

Declaration
public bool Contains(Vector2 position)
Parameters
Type Name Description
Vector2 position
Returns
Type Description
System.Boolean

Contains(Vector3)

Declaration
public bool Contains(Vector3 position)
Parameters
Type Name Description
System.Numerics.Vector3 position
Returns
Type Description
System.Boolean

Intersects(Rect)

Declaration
public bool Intersects(Rect other)
Parameters
Type Name Description
Rect other
Returns
Type Description
System.Boolean

Operators

Addition(Rect, Vector3)

Declaration
public static Rect operator +(Rect a, Vector3 offset)
Parameters
Type Name Description
Rect a
System.Numerics.Vector3 offset
Returns
Type Description
Rect

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
☀
☾