Struct Vector4
- Namespace
- Lime
- Assembly
- Lime.dll
public struct Vector4 : IEquatable<Vector4>
- Implements
- Inherited Members
Constructors
Vector4(Vector3, float)
public Vector4(Vector3 xyz, float w)
Parameters
Vector4(float, float, float, float)
public Vector4(float x, float y, float z, float w)
Parameters
Fields
One
Returns a vector with components 1, 1, 1, 1.
public static readonly Vector4 One
Field Value
W
[YuzuMember("3")]
public float W
Field Value
X
[YuzuMember("0")]
public float X
Field Value
Y
[YuzuMember("1")]
public float Y
Field Value
Z
[YuzuMember("2")]
public float Z
Field Value
Zero
Returns a vector with components 0, 0, 0, 0.
public static readonly Vector4 Zero
Field Value
Properties
this[int]
Gets or sets the vector component by its index.
public float this[int component] { get; set; }
Parameters
component
int
Property Value
Length
public float Length { get; }
Property Value
Normalized
public Vector4 Normalized { get; }
Property Value
SqrLength
public float SqrLength { get; }
Property Value
Methods
DotProduct(Vector4, Vector4)
public static float DotProduct(Vector4 value1, Vector4 value2)
Parameters
Returns
Equals(Vector4)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Vector4 rhs)
Parameters
rhs
Vector4
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator +(Vector4, Vector4)
public static Vector4 operator +(Vector4 value1, Vector4 value2)
Parameters
Returns
operator /(Vector4, Vector4)
public static Vector4 operator /(Vector4 value1, Vector4 value2)
Parameters
Returns
operator /(Vector4, float)
public static Vector4 operator /(Vector4 value1, float divider)
Parameters
Returns
operator ==(Vector4, Vector4)
public static bool operator ==(Vector4 value1, Vector4 value2)
Parameters
Returns
explicit operator Vector2(Vector4)
public static explicit operator Vector2(Vector4 value)
Parameters
value
Vector4
Returns
explicit operator Vector3(Vector4)
public static explicit operator Vector3(Vector4 value)
Parameters
value
Vector4
Returns
operator !=(Vector4, Vector4)
public static bool operator !=(Vector4 value1, Vector4 value2)
Parameters
Returns
operator *(Vector4, Vector4)
public static Vector4 operator *(Vector4 value1, Vector4 value2)
Parameters
Returns
operator *(Vector4, float)
public static Vector4 operator *(Vector4 value, float scaleFactor)
Parameters
Returns
operator *(float, Vector4)
public static Vector4 operator *(float scaleFactor, Vector4 value)
Parameters
Returns
operator -(Vector4, Vector4)
public static Vector4 operator -(Vector4 value1, Vector4 value2)
Parameters
Returns
operator -(Vector4)
public static Vector4 operator -(Vector4 value)
Parameters
value
Vector4