28 instantiations of Vector4
System.Numerics (28)
System\Numerics\Vector4.cs (17)
19
public static Vector4 Zero { get { return new
Vector4
(); } }
23
public static Vector4 One { get { return new
Vector4
(1.0f, 1.0f, 1.0f, 1.0f); } }
27
public static Vector4 UnitX { get { return new
Vector4
(1.0f, 0.0f, 0.0f, 0.0f); } }
31
public static Vector4 UnitY { get { return new
Vector4
(0.0f, 1.0f, 0.0f, 0.0f); } }
35
public static Vector4 UnitZ { get { return new
Vector4
(0.0f, 0.0f, 1.0f, 0.0f); } }
39
public static Vector4 UnitW { get { return new
Vector4
(0.0f, 0.0f, 0.0f, 1.0f); } }
224
return new
Vector4
(
261
return new
Vector4
(x, y, z, w);
274
return new
Vector4
(
290
return new
Vector4
(
306
return new
Vector4
(
322
return new
Vector4
(
352
return new
Vector4
(
382
return new
Vector4
(
412
return new
Vector4
(
469
return left * new
Vector4
(right, right, right, right);
481
return new
Vector4
(left, left, left, left) * right;
System\Numerics\Vector4_Intrinsics.cs (11)
169
return new
Vector4
(
186
return new
Vector4
(
202
return new
Vector4
(Math.Abs(value.X), Math.Abs(value.Y), Math.Abs(value.Z), Math.Abs(value.W));
214
return new
Vector4
((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y), (Single)Math.Sqrt(value.Z), (Single)Math.Sqrt(value.W));
229
return new
Vector4
(left.X + right.X, left.Y + right.Y, left.Z + right.Z, left.W + right.W);
242
return new
Vector4
(left.X - right.X, left.Y - right.Y, left.Z - right.Z, left.W - right.W);
255
return new
Vector4
(left.X * right.X, left.Y * right.Y, left.Z * right.Z, left.W * right.W);
268
return left * new
Vector4
(right);
281
return new
Vector4
(left) * right;
294
return new
Vector4
(left.X / right.X, left.Y / right.Y, left.Z / right.Z, left.W / right.W);
309
return new
Vector4
(
95 references to Vector4
System.Numerics (95)
System\Numerics\Plane.cs (2)
52
public Plane(
Vector4
value)
228
public static float Dot(Plane plane,
Vector4
value)
System\Numerics\Vector4.cs (56)
13
public partial struct Vector4 : IEquatable<
Vector4
>, IFormattable
19
public static
Vector4
Zero { get { return new Vector4(); } }
23
public static
Vector4
One { get { return new Vector4(1.0f, 1.0f, 1.0f, 1.0f); } }
27
public static
Vector4
UnitX { get { return new Vector4(1.0f, 0.0f, 0.0f, 0.0f); } }
31
public static
Vector4
UnitY { get { return new Vector4(0.0f, 1.0f, 0.0f, 0.0f); } }
35
public static
Vector4
UnitZ { get { return new Vector4(0.0f, 0.0f, 1.0f, 0.0f); } }
39
public static
Vector4
UnitW { get { return new Vector4(0.0f, 0.0f, 0.0f, 1.0f); } }
64
if (!(obj is
Vector4
))
66
return Equals((
Vector4
)obj);
123
float ls =
Vector4
.Dot(this, this);
143
return
Vector4
.Dot(this, this);
160
public static float Distance(
Vector4
value1,
Vector4
value2)
164
Vector4
difference = value1 - value2;
165
float ls =
Vector4
.Dot(difference, difference);
188
public static float DistanceSquared(
Vector4
value1,
Vector4
value2)
192
Vector4
difference = value1 - value2;
193
return
Vector4
.Dot(difference, difference);
212
public static
Vector4
Normalize(
Vector4
vector)
240
public static
Vector4
Clamp(
Vector4
value1,
Vector4
min,
Vector4
max)
272
public static
Vector4
Lerp(
Vector4
value1,
Vector4
value2, float amount)
288
public static
Vector4
Transform(Vector2 position, Matrix4x4 matrix)
304
public static
Vector4
Transform(Vector3 position, Matrix4x4 matrix)
320
public static
Vector4
Transform(
Vector4
vector, Matrix4x4 matrix)
336
public static
Vector4
Transform(Vector2 value, Quaternion rotation)
366
public static
Vector4
Transform(Vector3 value, Quaternion rotation)
396
public static
Vector4
Transform(
Vector4
value, Quaternion rotation)
431
public static
Vector4
Add(
Vector4
left,
Vector4
right)
443
public static
Vector4
Subtract(
Vector4
left,
Vector4
right)
455
public static
Vector4
Multiply(
Vector4
left,
Vector4
right)
467
public static
Vector4
Multiply(
Vector4
left, Single right)
479
public static
Vector4
Multiply(Single left,
Vector4
right)
491
public static
Vector4
Divide(
Vector4
left,
Vector4
right)
503
public static
Vector4
Divide(
Vector4
left, Single divisor)
514
public static
Vector4
Negate(
Vector4
value)
System\Numerics\Vector4_Intrinsics.cs (37)
133
public bool Equals(
Vector4
other)
151
public static float Dot(
Vector4
vector1,
Vector4
vector2)
167
public static
Vector4
Min(
Vector4
value1,
Vector4
value2)
184
public static
Vector4
Max(
Vector4
value1,
Vector4
value2)
200
public static
Vector4
Abs(
Vector4
value)
212
public static
Vector4
SquareRoot(
Vector4
value)
227
public static
Vector4
operator +(
Vector4
left,
Vector4
right)
240
public static
Vector4
operator -(
Vector4
left,
Vector4
right)
253
public static
Vector4
operator *(
Vector4
left,
Vector4
right)
266
public static
Vector4
operator *(
Vector4
left, Single right)
279
public static
Vector4
operator *(Single left,
Vector4
right)
292
public static
Vector4
operator /(
Vector4
left,
Vector4
right)
305
public static
Vector4
operator /(
Vector4
value1, float value2)
322
public static
Vector4
operator -(
Vector4
value)
335
public static bool operator ==(
Vector4
left,
Vector4
right)
347
public static bool operator !=(
Vector4
left,
Vector4
right)