IVector3
public int X
Language: C#
The X component of the vector.
public int Y
Language: C#
The Y component of the vector.
public int Z
Language: C#
The Z component of the vector.
public IVector3(int x, int y, int z)
Language: C#
Initializes a new instance of the [
] struct. Parameters:
- x: The X component of the vector.
- y: The Y component of the vector.
- z: The Z component of the vector.
public IVector3(IVector3 other)
Language: C#
Initializes a new instance of the [
] struct by copying another vector. Parameters:
- other: The vector to copy.
public IVector3(IVector4 other)
Language: C#
Initializes a new instance of the [
] struct from a IVector4 by dropping extra components. Parameters:
- other: The IVector4 to convert.
public IVector3(IVector2 other, int z = default)
Language: C#
Initializes a new instance of the [
] struct from a IVector2 by adding 2 component from parameter. Parameters:
- other: The IVector2 to convert.
- z: The Z component of the vector.
public int R
Language: C#
Red component of the vector.
public int G
Language: C#
Green component of the vector.
public int B
Language: C#
Blue component of the vector.
public int LengthSquared
Language: C#
Returns squared length of the vector.
Returns: The squared length of the vector.
public float Length
Language: C#
Returns length of the vector.
Returns: The length of the vector.
public FVector3 Normalized
Language: C#
public static IVector3 Zero
Language: C#
Returns a vector with all components set to zero.
Returns: A zero vector.
public static IVector3 One
Language: C#
Returns a vector with all components set to one.
Returns: A one vector.
public static IVector3 Right
Language: C#
Returns a unit vector pointing in the positive X direction.
Returns: A unit vector in the positive X direction.
public static IVector3 Left
Language: C#
Returns a unit vector pointing in the negative X direction.
Returns: A unit vector in the negative X direction.
public static IVector3 Up
Language: C#
Returns a unit vector pointing in the positive Y direction.
Returns: A unit vector in the positive Y direction.
public static IVector3 Down
Language: C#
Returns a unit vector pointing in the negative Y direction.
Returns: A unit vector in the negative Y direction.
public static IVector3 Forward
Language: C#
Returns a unit vector pointing in the positive Z direction.
Returns: A unit vector in the positive Z direction.
public static IVector3 Backward
Language: C#
Returns a unit vector pointing in the negative Z direction.
Returns: A unit vector in the negative Z direction.
public override string ToString()
Language: C#
public override int GetHashCode()
Language: C#
public static int DistanceSquared(IVector3 a, IVector3 b)
Language: C#
Calculates the squared distance between two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The squared distance between the two vectors.
public static float Distance(IVector3 a, IVector3 b)
Language: C#
Calculates the distance between two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The distance between the two vectors.
public static int Dot(IVector3 a, IVector3 b)
Language: C#
Calculates the dot product of two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The dot product of the two vectors.
public static IVector3 Cross(IVector3 a, IVector3 b)
Language: C#
Calculates the cross product of two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The cross product of the two vectors.
public static IVector3 Abs(IVector3 v)
Language: C#
Absolute value of a IVector3 vector.
Parameters:
- v: The vector.
Returns: The vector with absolute component values.
public static IVector3 ComponentMin(IVector3 a, IVector3 b)
Language: C#
Returns the minimum components of two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The vector with the minimum components.
public static IVector3 ComponentMax(IVector3 a, IVector3 b)
Language: C#
Returns the maximum components of two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The vector with the maximum components.
public static FVector3 Lerp(IVector3 a, IVector3 b, float t)
Language: C#
Returns linearly interpolated vector between two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
- t: The interpolation factor (0.0 - 1.0).
Returns: The interpolated vector.
public static operator IVector3 +(IVector3 a, IVector3 b)
Language: C#
Adds two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The sum of the two vectors.
public static operator IVector3 -(IVector3 a, IVector3 b)
Language: C#
Subtracts two IVector3 vectors.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The difference of the two vectors.
public static operator IVector3 *(IVector3 v, int scalar)
Language: C#
Multiplies a IVector3 vector by a scalar.
Parameters:
- v: The vector.
- scalar: The scalar.
Returns: The scaled vector.
public static operator IVector3 *(int scalar, IVector3 v)
Language: C#
Multiplies a scalar by a IVector3 vector.
Parameters:
- scalar: The scalar.
- v: The vector.
Returns: The scaled vector.
public static operator IVector3 *(IVector3 a, IVector3 b)
Language: C#
Multiplies a IVector3 vector component-wise by another IVector3 vector.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The component-wise multiplied vector.
public static operator IVector3 /(IVector3 v, int scalar)
Language: C#
Divides a IVector3 vector by a scalar.
Parameters:
- v: The vector.
- scalar: The scalar.
Returns: The scaled vector.
public static operator IVector3 /(int scalar, IVector3 v)
Language: C#
Divides a scalar by a IVector3 vector.
Parameters:
- scalar: The scalar.
- v: The vector.
Returns: The scaled vector.
public static operator IVector3 /(IVector3 a, IVector3 b)
Language: C#
Divides a IVector3 vector component-wise by another IVector3 vector.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The component-wise divided vector.
public static operator IVector3 %(IVector3 v, int scalar)
Language: C#
Finds a remainder of IVector3 vector by a scalar.
Parameters:
- v: The vector.
- scalar: The scalar.
Returns: The scaled vector.
public static operator IVector3 %(IVector3 a, IVector3 b)
Language: C#
Finds a remainder of IVector3 vector component-wise by another IVector3 vector.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: The component-wise divided vector.
public static operator IVector3 -(IVector3 v)
Language: C#
Negates a IVector3 vector.
Parameters:
- v: The vector.
Returns: The negated vector.
public static operator bool ==(IVector3 a, IVector3 b)
Language: C#
Checks if two IVector3 vectors are equal.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: True if the vectors are equal, false otherwise.
public static operator bool !=(IVector3 a, IVector3 b)
Language: C#
Checks if two IVector3 vectors are not equal.
Parameters:
- a: The first vector.
- b: The second vector.
Returns: True if the vectors are not equal, false otherwise.
public bool Equals(IVector3 other)
Language: C#
public override bool Equals(object? obj)
Language: C#