Vector4dVector4d Struct

Definition

Represents a 4D vector using four double-precision floating-point numbers.

``````[System.Serializable]
public struct Vector4d : IEquatable<OpenTK.Vector4d>``````
``type Vector4d = struct``
Inheritance
Vector4dVector4d
Attributes
Implements

Constructors

 Vector4d(Vector2d) Vector4d(Vector2d) Constructs a new Vector4d from the given Vector2d. Vector4d(Vector3d) Vector4d(Vector3d) Constructs a new Vector4d from the given Vector3d. Vector4d(Vector4d) Vector4d(Vector4d) Constructs a new Vector4d from the given Vector4d. Vector4d(Double) Vector4d(Double) Vector4d(Vector3, Double) Vector4d(Vector3, Double) Vector4d(Vector3d, Double) Vector4d(Vector3d, Double) Vector4d(Double, Double, Double, Double) Vector4d(Double, Double, Double, Double) Constructs a new Vector4d.

Fields

 One One Defines an instance with all components set to 1. SizeInBytes SizeInBytes Defines the size of the Vector4d struct in bytes. UnitW UnitW Defines a unit-length Vector4d that points towards the W-axis. UnitX UnitX Defines a unit-length Vector4d that points towards the X-axis. UnitY UnitY Defines a unit-length Vector4d that points towards the Y-axis. UnitZ UnitZ Defines a unit-length Vector4d that points towards the Z-axis. W W The Z component of the Vector4d. X X The X component of the Vector4d. Y Y The Y component of the Vector4d. Z Z The Z component of the Vector4d. Zero Zero Defines a zero-length Vector4d.

Properties

 Length Length Gets the length (magnitude) of the vector. LengthFast LengthFast Gets an approximation of the vector length (magnitude). LengthSquared LengthSquared Gets the square of the vector length (magnitude). Xy Xy Gets or sets an OpenTK.Vector2d with the X and Y components of this instance. Xyz Xyz Gets or sets an OpenTK.Vector3d with the X, Y and Z components of this instance.