示例#1
0
 public Vector2 OperateFloat(Vector2T <T> b, System.Func <Axis, T, T, float> operation)
 {
     return(new Vector2(
                operation(Axis.X, x, b.x),
                operation(Axis.Y, y, b.y)
                ));
 }
示例#2
0
 public Vector2T <T> Operate(Vector2T <T> b, System.Func <Axis, T, T, T> operation)
 {
     return(new Vector2T <T>(
                operation(Axis.X, x, b.x),
                operation(Axis.Y, y, b.y)
                ));
 }
示例#3
0
 public Vector2Bool OperateBool(Vector2T <T> b, System.Func <Axis, T, T, bool> operation)
 {
     return(new Vector2Bool(
                operation(Axis.X, x, b.x),
                operation(Axis.Y, y, b.y)
                ));
 }
示例#4
0
 public Vector2Int(Vector2T <int> vector)
 {
     this.x = vector.x;
     this.y = vector.y;
 }
示例#5
0
 public Vector3T(Vector2T <T> vector2T, T z = default)
 {
     this.x = vector2T.x;
     this.y = vector2T.y;
     this.z = z;
 }
 public Vector2Bool(Vector2T <bool> vector)
 {
     this.x = vector.x;
     this.y = vector.y;
 }
 public Vector2Float(Vector2T <float> vector)
 {
     this.x = vector.x;
     this.y = vector.y;
 }