Methods
AverageValues
(v.x + v.y + v.z + v.w) / 4.
SumValues
v.x + v.y + v.z + v.w.
MultiplyValues
v.x * v.y * v.z * v.w.
DivideValues
v.x / v.y / v.z / v.w.
SubtractValues
v.x - v.y - v.z - v.w.
AddToMe
Vector4(v1.x + v2.x, v1.y + v2.y, v1.z + v2.z, v1.w + v2.w).
SubtractFromMe
Vector4(v1.x - v2.x, v1.y - v2.y, v1.z - v2.z, v1.w - v2.w).
MultiplyMe
Vector4(v1.x * v2.x, v1.y * v2.y, v1.z * v2.z, v1.w * v2.w).
DivideIntoMe
Vector4(v1.x / v2.x, v1.y / v2.y, v1.z / v2.z, v1.w / v2.w).
Abs
Vector4(Mathf.Abs(vector4.x), Mathf.Abs(vector4.y), Mathf.Abs(vector4.z), Mathf.Abs(vector4.w)).
Acos
Vector4(Mathf.Acos(vector4.x), Mathf.Acos(vector4.y), Mathf.Acos(vector4.z), Mathf.Acos(vector4.w)).
Asin
Vector4(Mathf.Asin(vector4.x), Mathf.Asin(vector4.y), Mathf.Asin(vector4.z), Mathf.Asin(vector4.w)).
Atan
Vector4(Mathf.Atan(vector4.x), Mathf.Atan(vector4.y), Mathf.Atan(vector4.z), Mathf.Atan(vector4.w)).
Ceil
Vector4(Mathf.Ceil(vector4.x), Mathf.Ceil(vector4.y), Mathf.Ceil(vector4.z), Mathf.Ceil(vector4.w)).
Clamp01
Vector4(Mathf.Clamp01(vector4.x), Mathf.Clamp01(vector4.y), Mathf.Clamp01(vector4.z), Mathf.Clamp01(vector4.w)).
Cos
Vector4(Mathf.Cos(vector4.x), Mathf.Cos(vector4.y), Mathf.Cos(vector4.z), Mathf.Cos(vector4.w)).
Exp
Vector4(Mathf.Exp(vector4.x), Mathf.Exp(vector4.y), Mathf.Exp(vector4.z), Mathf.Exp(vector4.w)).
Floor
Vector4(Mathf.Floor(vector4.x), Mathf.Floor(vector4.y), Mathf.Floor(vector4.y), Mathf.Floor(vector4.w)).
Log10
Return new Vector4(Mathf.Log10(vector4.x), Mathf.Log10(vector4.y), Mathf.Log10(vector4.z), Mathf.Log10(vector4.w)).
Max
Mathf.Max(Mathf.Max(Mathf.Max(vector4.x, vector4.y), vector4.z), vector4.w).
Min
Mathf.Min(Mathf.Min(Mathf.Min(vector4.x, vector4.y), vector4.z), vector4.w).
Round
Vector4(Mathf.Round(vector4.x), Mathf.Round(vector4.y), Mathf.Round(vector4.z), Mathf.Round(vector4.w)).
Sign
Vector4(Mathf.Sign(vector4.x), Mathf.Sign(vector4.y), Mathf.Sign(vector4.z), Mathf.Sign(vector4.w)).
Sin
Vector4(Mathf.Sin(vector4.x), (Mathf.Sin(vector4.y)), Mathf.Sin(vector4.z), Mathf.Sin(vector4.w)).
Sqrt
Vector4(Mathf.Sqrt(vector4.x), Mathf.Sqrt(vector4.y), Mathf.Sqrt(vector4.z), Mathf.Sqrt(vector4.w)).
Tan
Vector4(Mathf.Tan(vector4.x), Mathf.Tan(vector4.y), Mathf.Tan(vector4.z), Mathf.Tan(vector4.w)).
ConvertToColor
Color(vector4.x, vector4.y, vector4.z, vector4.w).
ConvertToQuaternion
Quaternion(vector4.x, vector4.y, vector4.z, vector4.w).