예제 #1
0
 public float cross(Ivec2d <float> rhs) => x * rhs.y - y * rhs.x;
예제 #2
0
 public float dot(Ivec2d <float> rhs) => x * rhs.x + y * rhs.y;
예제 #3
0
 public vec2d_f(Ivec2d <float> v)
     : this(v.x, v.y)
 {
 }
예제 #4
0
 public readonly int cross(Ivec2d <int> rhs) => x * rhs.y - y * rhs.x;
예제 #5
0
 public readonly int dot(Ivec2d <int> rhs) => x * rhs.x + y * rhs.y;
예제 #6
0
 public vec2d_i(Ivec2d <int> v)
     : this(v.x, v.y)
 {
 }