12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Drawing;
- namespace bbiwarg.Utility
- {
- class Quad2D
- {
- public Vector2D TopLeft {private set; get;}
- public Vector2D TopRight { private set; get; }
- public Vector2D BottomLeft { private set; get; }
- public Vector2D BottomRight { private set; get; }
- public Quad2D(Vector2D bottomLeft, Vector2D topLeft, Vector2D topRight, Vector2D bottomRight)
- {
- TopLeft = topLeft;
- TopRight = topRight;
- BottomLeft = bottomLeft;
- BottomRight = BottomRight;
- }
- public PointF[] getVertices()
- {
- return new PointF[] {TopLeft,TopRight,BottomRight,BottomLeft};
- }
- }
- }
|