// Copyright 2018 RED Software, LLC. All Rights Reserved.
namespace IgniteEngine
{
///
/// Representation of 2D vectors and points.
///
public class Vector2
{
///
/// The X component of the vector.
///
public double X { get; set; }
///
/// The Y component of the vector.
///
public double Y { get; set; }
///
/// Creates a new instance of the class.
///
public Vector2()
{
X = 0.0D;
Y = 0.0D;
}
///
/// Creates a new instance of the class.
///
/// The X component of the vector.
/// The Y component of the vector.
public Vector2(double x, double y)
{
X = x;
Y = y;
}
///
/// Creates a new instance of the class.
///
/// A vector to copy components from.
public Vector2(Vector2 vector)
{
X = vector.X;
Y = vector.Y;
}
}
}