Vector4i

Summary

Represents a 4D 32-bit signed integer vector.

Definition

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

struct Vector4i
Implements:

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

Fields

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

Properties

Name Type Description
public static get; Zero Vector4i Gets a vector with all components set to zero.
public static get; One Vector4i Gets a vector with all components set to one.
public get; set; Item Int32 Gets or sets the component at the specified zero-based index.
public get; IsNormalized Boolean Gets a value indicating whether the squared length equals 1.

Methods

public Void CopyToValuePtr(Int32* valuePtr)

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

Parameters:


public Int32 LengthSq()

Summary: Calculates the squared magnitude of the vector.

Returns:


public Single Length()

Summary: Calculates the magnitude of the vector as a single-precision float.

Returns:


public Vector4f Normalized()

Summary: Returns a normalised single-precision vector scaled to unit length.

Returns:


public virtual String ToString()

Summary: Returns a 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(Vector4i 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: