CrabUI
Loading...
Searching...
No Matches
CUINullVector2.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Reflection;
5
6using Barotrauma;
7using Microsoft.Xna.Framework;
8using Microsoft.Xna.Framework.Input;
9using Microsoft.Xna.Framework.Graphics;
10
11namespace CrabUI
12{
13 /// <summary>
14 /// Vector2, but with float?
15 /// </summary>
16 public struct CUINullVector2
17 {
18 public float? X;
19 public float? Y;
20
21
22 public CUINullVector2()
23 {
24 X = null;
25 Y = null;
26 }
27 public CUINullVector2(Vector2 v)
28 {
29 X = v.X;
30 Y = v.Y;
31 }
32 public CUINullVector2(float? x, float? y)
33 {
34 X = x;
35 Y = y;
36 }
37
38 public override string ToString() => $"[{X},{Y}]";
39
40 }
41}
Vector2, but with float?