25 instantiations of Vector2
System.Numerics (25)
System\Numerics\Matrix3x2.cs (1)
76
return new
Vector2
(M31, M32);
System\Numerics\Vector2.cs (13)
19
public static Vector2 Zero { get { return new
Vector2
(); } }
23
public static Vector2 One { get { return new
Vector2
(1.0f, 1.0f); } }
27
public static Vector2 UnitX { get { return new
Vector2
(1.0f, 0.0f); } }
31
public static Vector2 UnitY { get { return new
Vector2
(0.0f, 1.0f); } }
203
return new
Vector2
(
227
return new
Vector2
(
252
return new
Vector2
(x, y);
265
return new
Vector2
(
279
return new
Vector2
(
293
return new
Vector2
(
307
return new
Vector2
(
321
return new
Vector2
(
345
return new
Vector2
(
System\Numerics\Vector2_Intrinsics.cs (11)
120
return new
Vector2
(
135
return new
Vector2
(
149
return new
Vector2
(Math.Abs(value.X), Math.Abs(value.Y));
161
return new
Vector2
((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y));
176
return new
Vector2
(left.X + right.X, left.Y + right.Y);
189
return new
Vector2
(left.X - right.X, left.Y - right.Y);
202
return new
Vector2
(left.X * right.X, left.Y * right.Y);
215
return new
Vector2
(left, left) * right;
228
return left * new
Vector2
(right, right);
241
return new
Vector2
(left.X / right.X, left.Y / right.Y);
255
return new
Vector2
(
110 references to Vector2
System.Numerics (110)
System\Numerics\Matrix3x2.cs (9)
72
public
Vector2
Translation
106
public static Matrix3x2 CreateTranslation(
Vector2
position)
169
public static Matrix3x2 CreateScale(float xScale, float yScale,
Vector2
centerPoint)
191
public static Matrix3x2 CreateScale(
Vector2
scales)
211
public static Matrix3x2 CreateScale(
Vector2
scales,
Vector2
centerPoint)
253
public static Matrix3x2 CreateScale(float scale,
Vector2
centerPoint)
300
public static Matrix3x2 CreateSkew(float radiansX, float radiansY,
Vector2
centerPoint)
385
public static Matrix3x2 CreateRotation(float radians,
Vector2
centerPoint)
System\Numerics\Vector2.cs (60)
13
public partial struct Vector2 : IEquatable<
Vector2
>, IFormattable
19
public static
Vector2
Zero { get { return new Vector2(); } }
23
public static
Vector2
One { get { return new Vector2(1.0f, 1.0f); } }
27
public static
Vector2
UnitX { get { return new Vector2(1.0f, 0.0f); } }
31
public static
Vector2
UnitY { get { return new Vector2(0.0f, 1.0f); } }
54
if (!(obj is
Vector2
))
56
return Equals((
Vector2
)obj);
107
float ls =
Vector2
.Dot(this, this);
126
return
Vector2
.Dot(this, this);
143
public static float Distance(
Vector2
value1,
Vector2
value2)
147
Vector2
difference = value1 - value2;
148
float ls =
Vector2
.Dot(difference, difference);
169
public static float DistanceSquared(
Vector2
value1,
Vector2
value2)
173
Vector2
difference = value1 - value2;
174
return
Vector2
.Dot(difference, difference);
191
public static
Vector2
Normalize(
Vector2
value)
216
public static
Vector2
Reflect(
Vector2
vector,
Vector2
normal)
220
float dot =
Vector2
.Dot(vector, normal);
240
public static
Vector2
Clamp(
Vector2
value1,
Vector2
min,
Vector2
max)
263
public static
Vector2
Lerp(
Vector2
value1,
Vector2
value2, float amount)
277
public static
Vector2
Transform(
Vector2
position, Matrix3x2 matrix)
291
public static
Vector2
Transform(
Vector2
position, Matrix4x4 matrix)
305
public static
Vector2
TransformNormal(
Vector2
normal, Matrix3x2 matrix)
319
public static
Vector2
TransformNormal(
Vector2
normal, Matrix4x4 matrix)
333
public static
Vector2
Transform(
Vector2
value, Quaternion rotation)
362
public static
Vector2
Add(
Vector2
left,
Vector2
right)
374
public static
Vector2
Subtract(
Vector2
left,
Vector2
right)
386
public static
Vector2
Multiply(
Vector2
left,
Vector2
right)
398
public static
Vector2
Multiply(
Vector2
left, Single right)
410
public static
Vector2
Multiply(Single left,
Vector2
right)
422
public static
Vector2
Divide(
Vector2
left,
Vector2
right)
434
public static
Vector2
Divide(
Vector2
left, Single divisor)
445
public static
Vector2
Negate(
Vector2
value)
System\Numerics\Vector2_Intrinsics.cs (37)
89
public bool Equals(
Vector2
other)
104
public static float Dot(
Vector2
value1,
Vector2
value2)
118
public static
Vector2
Min(
Vector2
value1,
Vector2
value2)
133
public static
Vector2
Max(
Vector2
value1,
Vector2
value2)
147
public static
Vector2
Abs(
Vector2
value)
159
public static
Vector2
SquareRoot(
Vector2
value)
174
public static
Vector2
operator +(
Vector2
left,
Vector2
right)
187
public static
Vector2
operator -(
Vector2
left,
Vector2
right)
200
public static
Vector2
operator *(
Vector2
left,
Vector2
right)
213
public static
Vector2
operator *(Single left,
Vector2
right)
226
public static
Vector2
operator *(
Vector2
left, Single right)
239
public static
Vector2
operator /(
Vector2
left,
Vector2
right)
252
public static
Vector2
operator /(
Vector2
value1, float value2)
266
public static
Vector2
operator -(
Vector2
value)
278
public static bool operator ==(
Vector2
left,
Vector2
right)
290
public static bool operator !=(
Vector2
left,
Vector2
right)
System\Numerics\Vector3_Intrinsics.cs (1)
42
public Vector3(
Vector2
value, float z) : this(value.X, value.Y, z) { }
System\Numerics\Vector4.cs (2)
288
public static Vector4 Transform(
Vector2
position, Matrix4x4 matrix)
336
public static Vector4 Transform(
Vector2
value, Quaternion rotation)
System\Numerics\Vector4_Intrinsics.cs (1)
65
public Vector4(
Vector2
value, Single z, Single w)