Click or drag to resize

double4 Structure

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

Namespace:  Fusee.Math.Core
Assembly:  Fusee.Math.Core (in Fusee.Math.Core.dll) Version: 0.7.0.0 (0.1.0.0)
Syntax
C#
public struct double4 : IEquatable<double4>

The double4 type exposes the following members.

Constructors
  NameDescription
Public methoddouble4(double2)
Constructs a new double4 from the given double2.
Public methoddouble4(double3)
Constructs a new double4 from the given double3.
Public methoddouble4(double4)
Constructs a new double4 from the given double4.
Public methoddouble4(double3, Double)
Constructs a new double4 from the specified double3 and ww component.
Public methoddouble4(Double, Double, Double, Double)
Constructs a new double4.
Top
Properties
  NameDescription
Public propertya
The alpha component (same as w)
Public propertyb
The blue component (same as z)
Public propertyg
The green component (same as y)
Public propertyLength
Gets the length (magnitude) of the vector.
Public propertyLengthFast
Gets an approximation of the vector length (magnitude).
Public propertyLengthSquared
Gets the square of the vector length (magnitude).
Public propertyStatic memberParse
Gets or sets the Converter object. Has the ability to convert a string to a double4.
Public propertyr
The red component (same as x)
Public propertyrgb
The rgb component (same as xyz)
Public propertyxy
Gets or sets an OpenTK.double2 with the x and y components of this instance.
Public propertyxyz
Gets or sets an OpenTK.double3 with the x, y and z components of this instance.
Top
Methods
  NameDescription
Public methodAdd(double4) Obsolete.
Add the Vector passed as parameter to this instance.
Public methodAdd(double4) Obsolete.
Add the Vector passed as parameter to this instance.
Public methodStatic memberAdd(double4, double4)
Adds two vectors.
Public methodStatic memberAdd(double4, double4, double4)
Adds two vectors.
Public methodStatic memberBaryCentric
Interpolate 3 Vectors using Barycentric coordinates
Public methodStatic memberClamp(double4, double4, double4)
Clamp a vector to the given minimum and maximum vectors
Public methodStatic memberClamp(double4, double4, double4, double4)
Clamp a vector to the given minimum and maximum vectors
Public methodDiv(Double) Obsolete.
Divide this instance by a scalar.
Public methodStatic memberDiv(double4, Double)
Divide a vector by a scalar
Public methodStatic memberDiv(double4, Double, double4)
Divide a vector by a scalar
Public methodStatic memberDivide(double4, double4)
Divides a vector by the components of a vector (scale).
Public methodStatic memberDivide(double4, Double)
Divides a vector by a scalar.
Public methodStatic memberDivide(double4, double4, double4)
Divide a vector by the components of a vector (scale).
Public methodStatic memberDivide(double4, Double, double4)
Divides a vector by a scalar.
Public methodStatic memberDot(double4, double4)
Calculate the dot product of two vectors
Public methodStatic memberDot(double4, double4, Double)
Calculate the dot product of two vectors
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(double4)
Indicates whether the current vector is equal to another vector.
Public methodGetHashCode
Returns the hashcode for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLerp(double4, double4, Double)
Returns a new Vector that is the linear blend of the 2 given Vectors
Public methodStatic memberLerp(double4, double4, Double, double4)
Returns a new Vector that is the linear blend of the 2 given Vectors
Public methodStatic memberMax(double4, double4)
Calculate the component-wise maximum of two vectors
Public methodStatic memberMax(double4, double4, double4)
Calculate the component-wise maximum of two vectors
Public methodStatic memberMin(double4, double4)
Calculate the component-wise minimum of two vectors
Public methodStatic memberMin(double4, double4, double4)
Calculate the component-wise minimum of two vectors
Public methodMult(Double) Obsolete.
Multiply this instance by a scalar.
Public methodStatic memberMult(double4, Double)
Multiply a vector and a scalar
Public methodStatic memberMult(double4, Double, double4)
Multiply a vector and a scalar
Public methodStatic memberMultiply(double4, double4)
Multiplies a vector by the components a vector (scale).
Public methodStatic memberMultiply(double4, Double)
Multiplies a vector by a scalar.
Public methodStatic memberMultiply(double4, double4, double4)
Multiplies a vector by the components of a vector (scale).
Public methodStatic memberMultiply(double4, Double, double4)
Multiplies a vector by a scalar.
Public methodNormalize
Scales the double4 to unit length.
Public methodStatic memberNormalize(double4)
Scale a vector to unit length
Public methodStatic memberNormalize(double4, double4)
Scale a vector to unit length
Public methodNormalizeFast
Scales the double4 to approximately unit length.
Public methodStatic memberNormalizeFast(double4)
Scale a vector to approximately unit length
Public methodStatic memberNormalizeFast(double4, double4)
Scale a vector to approximately unit length
Public methodScale(double4) Obsolete.
Scales this instance by the given parameter.
Public methodScale(double4) Obsolete.
Scales this instance by the given parameter.
Public methodScale(Double, Double, Double, Double) Obsolete.
Scales the current double4 by the given amounts.
Public methodSub(double4) Obsolete.
Subtract the Vector passed as parameter from this instance.
Public methodSub(double4) Obsolete.
Subtract the Vector passed as parameter from this instance.
Public methodStatic memberSub(double4, double4)
Subtract one Vector from another
Public methodStatic memberSub(double4, double4, double4)
Subtract one Vector from another
Public methodStatic memberSubtract(double4, double4)
Subtract one Vector from another
Public methodStatic memberSubtract(double4, double4, double4)
Subtract one Vector from another
Public methodToArray
Returns an array of doubles with the four components of the vector.
Public methodToString
Returns a System.String that represents the current double4.
(Overrides ValueTypeToString.)
Public methodStatic memberTransform(double4, double4x4)
Transform a Vector by the given Matrix
Public methodStatic memberTransform(double4, QuaternionD)
Transforms a vector by a QuaternionD rotation.
Public methodStatic memberTransform(double4, double4x4, double4)
Transform a Vector by the given Matrix
Public methodStatic memberTransform(double4, QuaternionD, double4)
Transforms a vector by a QuaternionD rotation.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two instances.
Public operatorStatic memberDivision
Divides an instance by a scalar.
Public operatorStatic memberEquality
Compares two instances for equality.
Public operatorStatic memberInequality
Compares two instances for inequality.
Public operatorStatic memberMultiply(Double, double4)
Multiplies an instance by a scalar.
Public operatorStatic memberMultiply(double4, Double)
Multiplies an instance by a scalar.
Public operatorStatic memberSubtraction
Subtracts two instances.
Public operatorStatic memberUnaryNegation
Negates an instance.
Top
Fields
  NameDescription
Public fieldStatic memberOne
Defines an instance with all components set to 1.
Public fieldStatic memberUnitW
Defines a unit-length double4 that points towards the w-axis.
Public fieldStatic memberUnitX
Defines a unit-length double4 that points towards the x-axis.
Public fieldStatic memberUnitY
Defines a unit-length double4 that points towards the y-axis.
Public fieldStatic memberUnitZ
Defines a unit-length double4 that points towards the z-axis.
Public fieldw
The w component of the double4.
Public fieldx
The x component of the double4.
Public fieldy
The y component of the double4.
Public fieldz
The z component of the double4.
Public fieldStatic memberZero
Defines a zero-length double4.
Top
Remarks
The double4 structure is suitable for interoperation with unmanaged code requiring four consecutive doubles.
See Also