Vector3d
Summary
Represents a 3D double-precision floating-point vector.
Definition
Namespace: SDT4.Managed.Core.Math
Assembly: SDT4.Managed.Core.dll
struct Vector3d
Implements:
IVectorSpatial<Double, Double, Vector3d, Vector3d>, ISerializable, IEquatable<Vector3d>
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. |
Properties
| Name | Type | Description |
|---|---|---|
public static get; Zero |
Vector3d | Gets a vector with all components set to zero. |
public static get; One |
Vector3d | 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:
valuePtr(Double*): Destination value pointer. Must be large enough to contain the values.
public Double LengthSq()
Summary: Calculates the squared magnitude of the vector.
Returns:
public Double Length()
Summary: Calculates the magnitude of the vector.
Returns:
public Vector3d 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:
obj(Object?):
Returns:
public Boolean Equals(Vector3d other)
Summary: Determines whether the specified vector is equal to the current vector.
Parameters:
other(Vector3d):
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:
-
info(SerializationInfo): -
context(StreamingContext):