Vector3dVector3d Struct

Definition

Represents a 3D vector using three double-precision floating-point numbers.

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

Constructors

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

Fields

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

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.

Operators

 Addition(Vector3d, Vector3d) Addition(Vector3d, Vector3d) Division(Vector3d, Double) Division(Vector3d, Double) Equality(Vector3d, Vector3d) Equality(Vector3d, Vector3d) Explicit(Vector3 to Vector3d) Explicit(Vector3 to Vector3d) Explicit(Vector3d to Vector3) Explicit(Vector3d to Vector3) Inequality(Vector3d, Vector3d) Inequality(Vector3d, Vector3d) Multiply(Double, Vector3d) Multiply(Double, Vector3d) Multiply(Vector3d, Double) Multiply(Vector3d, Double) Subtraction(Vector3d, Vector3d) Subtraction(Vector3d, Vector3d) UnaryNegation(Vector3d) UnaryNegation(Vector3d)