Vector4d

Summary

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

Definition

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

struct Vector4d
Implements:

IVectorSpatial<Double, Double, Vector4d, Vector4d>, ISerializable, IEquatable<Vector4d>

Fields

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

Properties

Name Type Description
public static get; Zero Vector4d Gets a vector with all components set to zero.
public static get; One Vector4d Gets a vector with all components set to one.
public get; set; Item Double 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(Double* valuePtr)

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

Parameters:


public Double LengthSq()

Summary: Calculates the squared magnitude of the vector.

Returns:


public Double Length()

Summary: Calculates the magnitude of the vector.

Returns:


public Vector4d 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(Vector4d 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: