Vector4d Vector4d 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.

Methods

Add(Vector4d, Vector4d, Vector4d) Add(Vector4d, Vector4d, Vector4d)

Add two Vectors

Add(Vector4d, Vector4d) Add(Vector4d, Vector4d)
Add(Vector4d) Add(Vector4d)

Add the Vector passed as parameter to this instance.

Add(Vector4d) Add(Vector4d)

Add the Vector passed as parameter to this instance.

BaryCentric(Vector4d, Vector4d, Vector4d, Double, Double) BaryCentric(Vector4d, Vector4d, Vector4d, Double, Double)
BaryCentric(Vector4d, Vector4d, Vector4d, Double, Double, Vector4d) BaryCentric(Vector4d, Vector4d, Vector4d, Double, Double, Vector4d)
Clamp(Vector4d, Vector4d, Vector4d) Clamp(Vector4d, Vector4d, Vector4d)
Clamp(Vector4d, Vector4d, Vector4d, Vector4d) Clamp(Vector4d, Vector4d, Vector4d, Vector4d)

Clamp a vector to the given minimum and maximum vectors

Div(Vector4d, Double, Vector4d) Div(Vector4d, Double, Vector4d)
Div(Double) Div(Double)

Divide this instance by a scalar.

Div(Vector4d, Double) Div(Vector4d, Double)
Divide(Vector4d, Vector4d, Vector4d) Divide(Vector4d, Vector4d, Vector4d)
Divide(Vector4d, Double, Vector4d) Divide(Vector4d, Double, Vector4d)
Divide(Vector4d, Vector4d) Divide(Vector4d, Vector4d)
Divide(Vector4d, Double) Divide(Vector4d, Double)
Dot(Vector4d, Vector4d) Dot(Vector4d, Vector4d)

Calculate the dot product of two vectors

Dot(Vector4d, Vector4d, Double) Dot(Vector4d, Vector4d, Double)
Equals(Vector4d) Equals(Vector4d)

Indicates whether the current vector is equal to another vector.

Equals(Object) Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode() GetHashCode()

Returns the hashcode for this instance.

Lerp(Vector4d, Vector4d, Double, Vector4d) Lerp(Vector4d, Vector4d, Double, Vector4d)
Lerp(Vector4d, Vector4d, Double) Lerp(Vector4d, Vector4d, Double)
Max(Vector4d, Vector4d) Max(Vector4d, Vector4d)
Max(Vector4d, Vector4d, Vector4d) Max(Vector4d, Vector4d, Vector4d)

Calculate the component-wise maximum of two vectors

Min(Vector4d, Vector4d) Min(Vector4d, Vector4d)
Min(Vector4d, Vector4d, Vector4d) Min(Vector4d, Vector4d, Vector4d)

Calculate the component-wise minimum of two vectors

Mult(Double) Mult(Double)

Multiply this instance by a scalar.

Mult(Vector4d, Double) Mult(Vector4d, Double)
Mult(Vector4d, Double, Vector4d) Mult(Vector4d, Double, Vector4d)
Multiply(Vector4d, Double, Vector4d) Multiply(Vector4d, Double, Vector4d)
Multiply(Vector4d, Vector4d) Multiply(Vector4d, Vector4d)
Multiply(Vector4d, Double) Multiply(Vector4d, Double)
Multiply(Vector4d, Vector4d, Vector4d) Multiply(Vector4d, Vector4d, Vector4d)
Normalize(Vector4d, Vector4d) Normalize(Vector4d, Vector4d)

Scale a vector to unit length

Normalize() Normalize()

Scales the Vector4d to unit length.

Normalize(Vector4d) Normalize(Vector4d)
NormalizeFast() NormalizeFast()

Scales the Vector4d to approximately unit length.

NormalizeFast(Vector4d) NormalizeFast(Vector4d)
NormalizeFast(Vector4d, Vector4d) NormalizeFast(Vector4d, Vector4d)

Scale a vector to approximately unit length

Scale(Vector4d) Scale(Vector4d)

Scales this instance by the given parameter.

Scale(Vector4d) Scale(Vector4d)

Scales this instance by the given parameter.

Scale(Double, Double, Double, Double) Scale(Double, Double, Double, Double)

Scales the current Vector4d by the given amounts.

Sub(Vector4d, Vector4d, Vector4d) Sub(Vector4d, Vector4d, Vector4d)

Subtract one Vector from another

Sub(Vector4d, Vector4d) Sub(Vector4d, Vector4d)
Sub(Vector4d) Sub(Vector4d)

Subtract the Vector passed as parameter from this instance.

Sub(Vector4d) Sub(Vector4d)

Subtract the Vector passed as parameter from this instance.

Subtract(Vector4d, Vector4d) Subtract(Vector4d, Vector4d)
Subtract(Vector4d, Vector4d, Vector4d) Subtract(Vector4d, Vector4d, Vector4d)
ToString() ToString()

Returns a System.String that represents the current Vector4d.

Transform(Vector4d, Matrix4d) Transform(Vector4d, Matrix4d)
Transform(Vector4d, Quaterniond) Transform(Vector4d, Quaterniond)
Transform(Vector4d, Matrix4d, Vector4d) Transform(Vector4d, Matrix4d, Vector4d)

Transform a Vector by the given Matrix

Transform(Vector4d, Quaterniond, Vector4d) Transform(Vector4d, Quaterniond, Vector4d)

Operators

Addition(Vector4d, Vector4d) Addition(Vector4d, Vector4d)
Division(Vector4d, Double) Division(Vector4d, Double)
Equality(Vector4d, Vector4d) Equality(Vector4d, Vector4d)
Explicit(Vector4d to IntPtr) Explicit(Vector4d to IntPtr)
Explicit(Vector4d to Double*) Explicit(Vector4d to Double*)
Explicit(Vector4d to Vector4) Explicit(Vector4d to Vector4)
Explicit(Vector4 to Vector4d) Explicit(Vector4 to Vector4d)
Inequality(Vector4d, Vector4d) Inequality(Vector4d, Vector4d)
Multiply(Vector4d, Double) Multiply(Vector4d, Double)
Multiply(Double, Vector4d) Multiply(Double, Vector4d)
Subtraction(Vector4d, Vector4d) Subtraction(Vector4d, Vector4d)
UnaryNegation(Vector4d) UnaryNegation(Vector4d)

Applies to