using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLang.Geometry
{
    public struct Line2 : IEquatable<Line2>
    {
        public Vector2 P;
        public Vector2 Q;

        public Line2(Vector2 p, Vector2 q)
        {
            this.P = p;
            this.Q = q;
        }

        public bool Equals(Line2 other)
        {
            return this.P.Equals(other.P) && this.Q.Equals(other.Q);
        }
    }
}