Show / Hide Table of Contents

Interface IVector

Interface that defines common properties for data structures that describe coordinates, vectors, magnitudes, and sizes in a two-dimensional space.

Inherited Members
IEquatable<IVector>.Equals(IVector)
IEquatable<Vector2>.Equals(Vector2)
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public interface IVector : IEquatable<IVector>, IEquatable<Vector2>

Properties

| Edit this page View Source

X

Gets the horizontal component (X axis) represented by this IVector.

Declaration
double X { get; }
Property Value
Type Description
double
| Edit this page View Source

Y

Gets the vertical component (Y axis) represented by this IVector.

Declaration
double Y { get; }
Property Value
Type Description
double

Methods

| Edit this page View Source

ToVector2()

Converts the current IVector to a Vector2.

Declaration
Vector2 ToVector2()
Returns
Type Description
Vector2

A new Vector2 instance with the same X and Y values as this IVector.

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX