Vector4f

Summary

Represents a 4D single-precision floating-point vector.

Definition

Namespace: SDT4.Managed.Core.Math
Assembly: SDT4.Managed.Core.dll

struct Vector4f
Implements:

IVectorSpatial<Single, Single, Vector4f, Vector4f>, ISerializable, IEquatable<Vector4f>

Fields

Name Type Description
public x Single The X component of the vector.
public y Single The Y component of the vector.
public z Single The Z component of the vector.
public w Single The W component of the vector.

Properties

Name Type Description
public static get; Zero Vector4f Gets a vector with all components set to zero.
public static get; One Vector4f Gets a vector with all components set to one.
public get; set; Item Single Gets or sets the component at the specified zero-based index.
public get; IsNormalized Boolean Gets a value indicating whether the vector is normalised to unit length within tolerance.

Methods

public Void CopyToValuePtr(Single* valuePtr)

Summary: Copies the vector values into a scalar value pointer.

Parameters:


public Single LengthSq()

Summary: Calculates the squared magnitude of the vector.

Returns:


public Single Length()

Summary: Calculates the magnitude of the vector.

Returns:


public Vector4f Normalized()

Summary: Returns a normalised copy of the vector scaled to unit length.

Returns:


public virtual String ToString()

Summary: Returns a culture-invariant string representation of the vector.

Returns:


public virtual Boolean Equals(Object? obj)

Summary: Determines whether the specified object is equal to the current vector.

Parameters:

Returns:


public Boolean Equals(Vector4f other)

Summary: Determines whether the specified vector is equal to the current vector.

Parameters:

Returns:


public virtual Int32 GetHashCode()

Summary: Returns the hash code for this vector.

Returns:


public Void GetObjectData(SerializationInfo info, StreamingContext context)

Summary: Populates serialisation information with vector component data.

Parameters: