/// <summary>Initializes a new vector from the provided components</summary> /// <param name="x">Absolute and relative X coordinate of the vector</param> /// <param name="y">Absolute and relative Y coordinate of the vector</param> public UniVector(UniScalar x, UniScalar y) { X = x; Y = y; }
/// <summary>Initializes a new rectangle from the provided individual coordinates</summary> /// <param name="x">X coordinate of the rectangle's left border</param> /// <param name="y">Y coordinate of the rectangle's upper border</param> /// <param name="width">Width of the area covered by the rectangle</param> /// <param name="height">Height of the area covered by the rectangle</param> public UniRectangle(UniScalar x, UniScalar y, UniScalar width, UniScalar height) { Location = new UniVector(x, y); Size = new UniVector(width, height); }