FVector4

public float X

Language: C#

The X component of the vector.

public float Y

Language: C#

The Y component of the vector.

public float Z

Language: C#

The Z component of the vector.

public float W

Language: C#

The W component of the vector.

public FVector4(float x, float y, float z, float w)

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.
  • w: The W component of the vector.

public FVector4(FVector4 other)

Language: C#

Initializes a new instance of the [] struct by copying another vector.

Parameters:

  • other: The vector to copy.

public FVector4(FVector3 other, float w = default)

Language: C#

Initializes a new instance of the [] struct from a FVector3 by adding 3 component from parameter.

Parameters:

  • other: The FVector3 to convert.
  • w: The W component of the vector.

public float R

Language: C#

Red component of the vector.

public float G

Language: C#

Green component of the vector.

public float B

Language: C#

Blue component of the vector.

public float A

Language: C#

Alpha component of the vector.

public float 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 FVector4 Normalized

Language: C#

public static FVector4 Zero

Language: C#

Returns a vector with all components set to zero.

Returns: A zero vector.

public static FVector4 One

Language: C#

Returns a vector with all components set to one.

Returns: A one vector.

public static FVector4 Right

Language: C#

Returns a unit vector pointing in the positive X direction.

Returns: A unit vector in the positive X direction.

public static FVector4 Left

Language: C#

Returns a unit vector pointing in the negative X direction.

Returns: A unit vector in the negative X direction.

public static FVector4 Up

Language: C#

Returns a unit vector pointing in the positive Y direction.

Returns: A unit vector in the positive Y direction.

public static FVector4 Down

Language: C#

Returns a unit vector pointing in the negative Y direction.

Returns: A unit vector in the negative Y direction.

public static FVector4 Forward

Language: C#

Returns a unit vector pointing in the positive Z direction.

Returns: A unit vector in the positive Z direction.

public static FVector4 Backward

Language: C#

Returns a unit vector pointing in the negative Z direction.

Returns: A unit vector in the negative Z direction.

public static FVector4 Ana

Language: C#

Returns a unit vector pointing in the positive W direction.

Returns: A unit vector in the positive W direction.

public static FVector4 Kata

Language: C#

Returns a unit vector pointing in the negative W direction.

Returns: A unit vector in the negative W direction.

public override string ToString()

Language: C#

public override int GetHashCode()

Language: C#

public static float DistanceSquared(FVector4 a, FVector4 b)

Language: C#

Calculates the squared distance between two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The squared distance between the two vectors.

public static float Distance(FVector4 a, FVector4 b)

Language: C#

Calculates the distance between two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The distance between the two vectors.

public static float Dot(FVector4 a, FVector4 b)

Language: C#

Calculates the dot product of two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The dot product of the two vectors.

public static FVector4 Abs(FVector4 v)

Language: C#

Absolute value of a FVector4 vector.

Parameters:

  • v: The vector.

Returns: The vector with absolute component values.

public static FVector4 ComponentMin(FVector4 a, FVector4 b)

Language: C#

Returns the minimum components of two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The vector with the minimum components.

public static FVector4 ComponentMax(FVector4 a, FVector4 b)

Language: C#

Returns the maximum components of two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The vector with the maximum components.

public static FVector4 Lerp(FVector4 a, FVector4 b, float t)

Language: C#

Returns linearly interpolated vector between two FVector4 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 FVector4 +(FVector4 a, FVector4 b)

Language: C#

Adds two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The sum of the two vectors.

public static operator FVector4 -(FVector4 a, FVector4 b)

Language: C#

Subtracts two FVector4 vectors.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The difference of the two vectors.

public static operator FVector4 *(FVector4 v, float scalar)

Language: C#

Multiplies a FVector4 vector by a scalar.

Parameters:

  • v: The vector.
  • scalar: The scalar.

Returns: The scaled vector.

public static operator FVector4 *(float scalar, FVector4 v)

Language: C#

Multiplies a scalar by a FVector4 vector.

Parameters:

  • scalar: The scalar.
  • v: The vector.

Returns: The scaled vector.

public static operator FVector4 *(FVector4 a, FVector4 b)

Language: C#

Multiplies a FVector4 vector component-wise by another FVector4 vector.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The component-wise multiplied vector.

public static operator FVector4 /(FVector4 v, float scalar)

Language: C#

Divides a FVector4 vector by a scalar.

Parameters:

  • v: The vector.
  • scalar: The scalar.

Returns: The scaled vector.

public static operator FVector4 /(float scalar, FVector4 v)

Language: C#

Divides a scalar by a FVector4 vector.

Parameters:

  • scalar: The scalar.
  • v: The vector.

Returns: The scaled vector.

public static operator FVector4 /(FVector4 a, FVector4 b)

Language: C#

Divides a FVector4 vector component-wise by another FVector4 vector.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The component-wise divided vector.

public static operator FVector4 %(FVector4 v, float scalar)

Language: C#

Finds a remainder of FVector4 vector by a scalar.

Parameters:

  • v: The vector.
  • scalar: The scalar.

Returns: The scaled vector.

public static operator FVector4 %(FVector4 a, FVector4 b)

Language: C#

Finds a remainder of FVector4 vector component-wise by another FVector4 vector.

Parameters:

  • a: The first vector.
  • b: The second vector.

Returns: The component-wise divided vector.

public static operator FVector4 -(FVector4 v)

Language: C#

Negates a FVector4 vector.

Parameters:

  • v: The vector.

Returns: The negated vector.

public static operator bool ==(FVector4 a, FVector4 b)

Language: C#

Checks if two FVector4 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 !=(FVector4 a, FVector4 b)

Language: C#

Checks if two FVector4 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(FVector4 other)

Language: C#

public override bool Equals(object? obj)

Language: C#