Interface IVector
Interface that defines common properties for data structures that describe coordinates, vectors, magnitudes, and sizes in a two-dimensional space.
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public interface IVector : IEquatable<IVector>, IEquatable<Vector2>
Properties
| Edit this page View SourceX
Gets the horizontal component (X axis) represented by this IVector.
Declaration
double X { get; }
Property Value
Type | Description |
---|---|
double |
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 SourceToVector2()
Declaration
Vector2 ToVector2()
Returns
Type | Description |
---|---|
Vector2 | A new Vector2 instance with the same X and Y values as this IVector. |