struct Vector4
in global
A 4-dimensional vector/point.
public static Vector4 Zero
A 4D vector with all components set to 0.
public static Vector4 One
A 4D vector with all components set to 1.
public float x { get; set; }
The X component of this Vector.
public float y { get; set; }
The Y component of this Vector.
public float z { get; set; }
The Z component of this Vector.
public float w { get; set; }
The W component of this Vector.
public Vector4( float x, float y, float z, float w )
Initializes a vector4 with given components.
xThe X component.yThe Y component.zThe Z component.wThe W component.
public Vector4( ref Vector3 v, float w = 0 )
Initializes a 4D vector from given #D vector and the given W component.
public Vector4( float all )
Initializes the 4D vector with all components set to given value.
public static Vector4 Lerp( Vector4 a, Vector4 b, float frac, bool clamp = True )
Performs linear interpolation between 2 given vectors.
aVector AbVector BfracFraction, where 0 would return Vector A, 0.5 would return a point between the 2 vectors, and 1 would return Vector B.clampWhether to clamp the fraction argument between [0,1]
public Vector4 LerpTo( Vector4 target, float frac, bool clamp = True )
Performs linear interpolation between this and given vectors.
targetVector BfracFraction, where 0 would return Vector A, 0.5 would return a point between the 2 vectors, and 1 would return Vector B.clampWhether to clamp the fraction argument between [0,1]
public float Length { get; }
The length of this vector object
public float LengthSquared { get; }
The squared length of this vector object
public bool IsNearZeroLength { get; }
Whether length of this vector is nearly zero.
public static Vector4 Parse( string str )
Given a string, try to convert this into a vector4. The format is "x,y,z,w".
public static Vector4 Parse( string str, IFormatProvider provider )
🤡 Doc inheritance is not yet supported.
No summary.
public static bool TryParse( string str, ref Vector4 result )
🤡 Doc inheritance is not yet supported.
No summary.
public static bool TryParse( string str, IFormatProvider provider, ref Vector4 result )
🤡 Doc inheritance is not yet supported.
No summary.
public Type GetType( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public static Vector4 op_UnaryNegation( ref Vector4 value )
😔 No documentation found.
public static Vector4 op_Implicit( ref Color value )
😔 No documentation found.
public static Vector4 op_Implicit( Vector4 value )
😔 No documentation found.
public static Vector4 op_Division( ref Vector4 c1, float f )
😔 No documentation found.
public static Vector4 op_Multiply( float f, ref Vector4 c1 )
😔 No documentation found.
public static Vector4 op_Multiply( ref Vector4 c1, ref Vector4 c2 )
😔 No documentation found.
public static Vector4 op_Multiply( ref Vector4 c1, float f )
😔 No documentation found.
public static Vector4 op_Subtraction( ref Vector4 c1, ref Vector4 c2 )
😔 No documentation found.
public static Vector4 op_Addition( ref Vector4 c1, ref Vector4 c2 )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( Vector4 other )
😔 No documentation found.
public static Vector4 op_Implicit( Vector4 value )
😔 No documentation found.