Struct Vector4
Assembly: UnityEngine.dll
Syntax
public struct Vector4 : IEquatable<Vector4>
Constructors
|
Improve this Doc
View Source
Vector4(Single, Single)
Declaration
public Vector4(float x, float y)
Parameters
|
Improve this Doc
View Source
Vector4(Single, Single, Single)
Declaration
public Vector4(float x, float y, float z)
Parameters
|
Improve this Doc
View Source
Vector4(Single, Single, Single, Single)
Declaration
public Vector4(float x, float y, float z, float w)
Parameters
Fields
|
Improve this Doc
View Source
kEpsilon
Declaration
public const float kEpsilon = 1E-05F
Field Value
|
Improve this Doc
View Source
w
Declaration
Field Value
|
Improve this Doc
View Source
x
Declaration
Field Value
|
Improve this Doc
View Source
y
Declaration
Field Value
|
Improve this Doc
View Source
z
Declaration
Field Value
Properties
|
Improve this Doc
View Source
Item[Int32]
Declaration
public float this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
magnitude
Declaration
public float magnitude { get; }
Property Value
|
Improve this Doc
View Source
negativeInfinity
Declaration
public static Vector4 negativeInfinity { get; }
Property Value
|
Improve this Doc
View Source
normalized
Declaration
public Vector4 normalized { get; }
Property Value
|
Improve this Doc
View Source
one
Declaration
public static Vector4 one { get; }
Property Value
|
Improve this Doc
View Source
positiveInfinity
Declaration
public static Vector4 positiveInfinity { get; }
Property Value
|
Improve this Doc
View Source
sqrMagnitude
Declaration
public float sqrMagnitude { get; }
Property Value
|
Improve this Doc
View Source
zero
Declaration
public static Vector4 zero { get; }
Property Value
Methods
|
Improve this Doc
View Source
Distance(Vector4, Vector4)
Declaration
public static float Distance(Vector4 a, Vector4 b)
Parameters
Returns
|
Improve this Doc
View Source
Dot(Vector4, Vector4)
Declaration
public static float Dot(Vector4 a, Vector4 b)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(Vector4)
Declaration
public bool Equals(Vector4 other)
Parameters
Type |
Name |
Description |
Vector4 |
other |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Lerp(Vector4, Vector4, Single)
Declaration
public static Vector4 Lerp(Vector4 a, Vector4 b, float t)
Parameters
Returns
|
Improve this Doc
View Source
LerpUnclamped(Vector4, Vector4, Single)
Declaration
public static Vector4 LerpUnclamped(Vector4 a, Vector4 b, float t)
Parameters
Returns
|
Improve this Doc
View Source
Magnitude(Vector4)
Declaration
public static float Magnitude(Vector4 a)
Parameters
Returns
|
Improve this Doc
View Source
Max(Vector4, Vector4)
Declaration
public static Vector4 Max(Vector4 lhs, Vector4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
Min(Vector4, Vector4)
Declaration
public static Vector4 Min(Vector4 lhs, Vector4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
MoveTowards(Vector4, Vector4, Single)
Declaration
public static Vector4 MoveTowards(Vector4 current, Vector4 target, float maxDistanceDelta)
Parameters
Returns
|
Improve this Doc
View Source
Normalize()
Declaration
|
Improve this Doc
View Source
Normalize(Vector4)
Declaration
public static Vector4 Normalize(Vector4 a)
Parameters
Returns
|
Improve this Doc
View Source
Project(Vector4, Vector4)
Declaration
public static Vector4 Project(Vector4 a, Vector4 b)
Parameters
Returns
|
Improve this Doc
View Source
Scale(Vector4)
Declaration
public void Scale(Vector4 scale)
Parameters
Type |
Name |
Description |
Vector4 |
scale |
|
|
Improve this Doc
View Source
Scale(Vector4, Vector4)
Declaration
public static Vector4 Scale(Vector4 a, Vector4 b)
Parameters
Returns
|
Improve this Doc
View Source
Set(Single, Single, Single, Single)
Declaration
public void Set(float newX, float newY, float newZ, float newW)
Parameters
|
Improve this Doc
View Source
SqrMagnitude()
Declaration
public float SqrMagnitude()
Returns
|
Improve this Doc
View Source
SqrMagnitude(Vector4)
Declaration
public static float SqrMagnitude(Vector4 a)
Parameters
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
String |
format |
|
Returns
Operators
|
Improve this Doc
View Source
Addition(Vector4, Vector4)
Declaration
public static Vector4 operator +(Vector4 a, Vector4 b)
Parameters
Returns
|
Improve this Doc
View Source
Division(Vector4, Single)
Declaration
public static Vector4 operator /(Vector4 a, float d)
Parameters
Returns
|
Improve this Doc
View Source
Equality(Vector4, Vector4)
Declaration
public static bool operator ==(Vector4 lhs, Vector4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Vector2 to Vector4)
Declaration
public static implicit operator Vector4(Vector2 v)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Vector3 to Vector4)
Declaration
public static implicit operator Vector4(Vector3 v)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Vector4 to Vector2)
Declaration
public static implicit operator Vector2(Vector4 v)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Vector4 to Vector3)
Declaration
public static implicit operator Vector3(Vector4 v)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Vector4, Vector4)
Declaration
public static bool operator !=(Vector4 lhs, Vector4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Single, Vector4)
Declaration
public static Vector4 operator *(float d, Vector4 a)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Vector4, Single)
Declaration
public static Vector4 operator *(Vector4 a, float d)
Parameters
Returns
|
Improve this Doc
View Source
Subtraction(Vector4, Vector4)
Declaration
public static Vector4 operator -(Vector4 a, Vector4 b)
Parameters
Returns
|
Improve this Doc
View Source
UnaryNegation(Vector4)
Declaration
public static Vector4 operator -(Vector4 a)
Parameters
Returns
Implements
Extension Methods