Vector3i
Summary
Represents a 3D 32-bit signed integer vector.
Definition
Namespace: SDT4.Managed.Core.Math
Assembly: SDT4.Managed.Core.dll
struct Vector3i
Implements:
IVectorSpatial<Int32, Single, Vector3i, Vector3f>, ISerializable, IEquatable<Vector3i>
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. |
Properties
| Name | Type | Description |
|---|---|---|
public static get; Zero |
Vector3i | Gets a vector with all components set to zero. |
public static get; One |
Vector3i | 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:
valuePtr(Int32*): Destination value pointer. Must be large enough to contain the values.
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 Vector3f 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:
obj(Object?):
Returns:
public Boolean Equals(Vector3i other)
Summary: Determines whether the specified vector is equal to the current vector.
Parameters:
other(Vector3i):
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):