ILNumerics Ultimate VS

Vector4 Structure

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Represents a 4D vector using four single-precision floating-point numbers.

[ILNumerics Visualization Engine]

Namespace:  ILNumerics.Drawing
Assembly:  ILNumerics.Drawing (in ILNumerics.Drawing.dll) Version: ILNumerics Ultimate VS 4
Syntax

[SerializableAttribute]
public struct Vector4 : IEquatable<Vector4>

The Vector4 type exposes the following members.

Constructors

  NameDescription
Public methodVector4(Vector3)
Constructs a new Vector4 from the given Vector3.

[ILNumerics Visualization Engine]

Public methodVector4(Vector4)
Constructs a new Vector4 from the given Vector4.

[ILNumerics Visualization Engine]

Public methodVector4(Vector3, Single)
Constructs a new Vector4 from the specified Vector3 and w component.

[ILNumerics Visualization Engine]

Public methodVector4(Single, Single, Single, Single)
Constructs a new Vector4.

[ILNumerics Visualization Engine]

Top
Properties

  NameDescription
Public propertyLength
Gets the length (magnitude) of the vector.

[ILNumerics Visualization Engine]

Public propertyLengthSquared
Gets the square of the vector length (magnitude).

[ILNumerics Visualization Engine]

Public propertyXyz
Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.

[ILNumerics Visualization Engine]

Top
Methods

  NameDescription
Public methodAdd(Vector4) Obsolete.
Add the Vector passed as parameter to this instance.

[ILNumerics Visualization Engine]

Public methodAdd(Vector4) Obsolete.
Add the Vector passed as parameter to this instance.

[ILNumerics Visualization Engine]

Public methodStatic memberAdd(Vector4, Vector4)
Adds two vectors.

[ILNumerics Visualization Engine]

Public methodStatic memberAdd(Vector4, Vector4, Vector4)
Adds two vectors.

[ILNumerics Visualization Engine]

Public methodStatic memberBaryCentric(Vector4, Vector4, Vector4, Single, Single)
Interpolate 3 Vectors using Barycentric coordinates

[ILNumerics Visualization Engine]

Public methodStatic memberBaryCentric(Vector4, Vector4, Vector4, Single, Single, Vector4)
Interpolate 3 Vectors using Barycentric coordinates

[ILNumerics Visualization Engine]

Public methodStatic memberClamp(Vector4, Vector4, Vector4)
Clamp a vector to the given minimum and maximum vectors

[ILNumerics Visualization Engine]

Public methodStatic memberClamp(Vector4, Vector4, Vector4, Vector4)
Clamp a vector to the given minimum and maximum vectors

[ILNumerics Visualization Engine]

Public methodDiv(Single) Obsolete.
Divide this instance by a scalar.

[ILNumerics Visualization Engine]

Public methodStatic memberDiv(Vector4, Single)
Divide a vector by a scalar

[ILNumerics Visualization Engine]

Public methodStatic memberDiv(Vector4, Single, Vector4)
Divide a vector by a scalar

[ILNumerics Visualization Engine]

Public methodStatic memberDivide(Vector4, Vector4)
Divides a vector by the components of a vector (scale).

[ILNumerics Visualization Engine]

Public methodStatic memberDivide(Vector4, Single)
Divides a vector by a scalar.

[ILNumerics Visualization Engine]

Public methodStatic memberDivide(Vector4, Vector4, Vector4)
Divide a vector by the components of a vector (scale).

[ILNumerics Visualization Engine]

Public methodStatic memberDivide(Vector4, Single, Vector4)
Divides a vector by a scalar.

[ILNumerics Visualization Engine]

Public methodStatic memberDot(Vector3, Vector4)
Public methodStatic memberDot(Vector4, Vector3)
Public methodStatic memberDot(Vector4, Vector4)
Calculate the dot product of two vectors

[ILNumerics Visualization Engine]

Public methodStatic memberDot(Vector4, Vector4, Single)
Calculate the dot product of two vectors

[ILNumerics Visualization Engine]

Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.

[ILNumerics Visualization Engine]

(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4)
Indicates whether the current vector is equal to another vector.

[ILNumerics Visualization Engine]

Public methodGetHashCode
Returns the hashcode for this instance.

[ILNumerics Visualization Engine]

(Overrides ValueTypeGetHashCode.)
Public methodStatic memberLerp(Vector4, Vector4, Single)
Returns a new Vector that is the linear blend of the 2 given Vectors

[ILNumerics Visualization Engine]

Public methodStatic memberLerp(Vector4, Vector4, Single, Vector4)
Returns a new Vector that is the linear blend of the 2 given Vectors

[ILNumerics Visualization Engine]

Public methodStatic memberMax(Vector4, Vector4)
Calculate the component-wise maximum of two vectors

[ILNumerics Visualization Engine]

Public methodStatic memberMax(Vector4, Vector4, Vector4)
Calculate the component-wise maximum of two vectors

[ILNumerics Visualization Engine]

Public methodStatic memberMin(Vector4, Vector4)
Calculate the component-wise minimum of two vectors

[ILNumerics Visualization Engine]

Public methodStatic memberMin(Vector4, Vector4, Vector4)
Calculate the component-wise minimum of two vectors

[ILNumerics Visualization Engine]

Public methodMult(Single) Obsolete.
Multiply this instance by a scalar.

[ILNumerics Visualization Engine]

Public methodStatic memberMult(Vector4, Single)
Multiply a vector and a scalar

[ILNumerics Visualization Engine]

Public methodStatic memberMult(Vector4, Single, Vector4)
Multiply a vector and a scalar

[ILNumerics Visualization Engine]

Public methodStatic memberMultiply(Vector4, Vector4)
Multiplies a vector by the components a vector (scale).

[ILNumerics Visualization Engine]

Public methodStatic memberMultiply(Vector4, Single)
Multiplies a vector by a scalar.

[ILNumerics Visualization Engine]

Public methodStatic memberMultiply(Vector4, Vector4, Vector4)
Multiplies a vector by the components of a vector (scale).

[ILNumerics Visualization Engine]

Public methodStatic memberMultiply(Vector4, Single, Vector4)
Multiplies a vector by a scalar.

[ILNumerics Visualization Engine]

Public methodNormalize
Scales the Vector4 to unit length.

[ILNumerics Visualization Engine]

Public methodStatic memberNormalize(Vector4)
Scale a vector to unit length

[ILNumerics Visualization Engine]

Public methodStatic memberNormalize(Vector4, Vector4)
Scale a vector to unit length

[ILNumerics Visualization Engine]

Public methodScale(Vector4) Obsolete.
Scales this instance by the given parameter.

[ILNumerics Visualization Engine]

Public methodScale(Vector4) Obsolete.
Scales this instance by the given parameter.

[ILNumerics Visualization Engine]

Public methodScale(Single, Single, Single, Single) Obsolete.
Scales the current Vector4 by the given amounts.

[ILNumerics Visualization Engine]

Public methodSub(Vector4) Obsolete.
Subtract the Vector passed as parameter from this instance.

[ILNumerics Visualization Engine]

Public methodSub(Vector4) Obsolete.
Subtract the Vector passed as parameter from this instance.

[ILNumerics Visualization Engine]

Public methodStatic memberSub(Vector4, Vector4)
Subtract one Vector from another

[ILNumerics Visualization Engine]

Public methodStatic memberSub(Vector4, Vector4, Vector4)
Subtract one Vector from another

[ILNumerics Visualization Engine]

Public methodStatic memberSubtract(Vector4, Vector4)
Subtract one Vector from another

[ILNumerics Visualization Engine]

Public methodStatic memberSubtract(Vector4, Vector4, Vector4)
Subtract one Vector from another

[ILNumerics Visualization Engine]

Public methodToString
Returns a System.String that represents the current Vector4.

[ILNumerics Visualization Engine]

(Overrides ValueTypeToString.)
Public methodToXMLAttrString
Convert this vector into a short string representation, suitable for xml attribute serialization

[ILNumerics Visualization Engine]

Public methodStatic memberTransform(Vector4, Quaternion)
Transforms a vector by a quaternion rotation.

[ILNumerics Visualization Engine]

Public methodStatic memberTransform(Vector4, Quaternion, Vector4)
Transforms a vector by a quaternion rotation.

[ILNumerics Visualization Engine]

Top
Operators

  NameDescription
Public operatorStatic memberAddition
Adds two instances.

[ILNumerics Visualization Engine]

Public operatorStatic memberDivision
Divides an instance by a scalar.

[ILNumerics Visualization Engine]

Public operatorStatic memberEquality
Compares two instances for equality.

[ILNumerics Visualization Engine]

Public operatorStatic member(Vector4 to Single*)
Returns a pointer to the first element of the specified instance.

[ILNumerics Visualization Engine]

Public operatorStatic member(Vector4 to IntPtr)
Returns a pointer to the first element of the specified instance.

[ILNumerics Visualization Engine]

Public operatorStatic member(Vector3 to Vector4)
Public operatorStatic memberInequality
Compares two instances for inequality.

[ILNumerics Visualization Engine]

Public operatorStatic memberMultiply(Single, Vector4)
Multiplies an instance by a scalar.

[ILNumerics Visualization Engine]

Public operatorStatic memberMultiply(Vector4, Single)
Multiplies an instance by a scalar.

[ILNumerics Visualization Engine]

Public operatorStatic memberSubtraction
Subtracts two instances.

[ILNumerics Visualization Engine]

Public operatorStatic memberUnaryNegation
Negates an instance.

[ILNumerics Visualization Engine]

Top
Fields

  NameDescription
Public fieldStatic memberOne
Defines an instance with all components set to 1.
Public fieldStatic memberSizeInBytes
Defines the size of the Vector4 struct in bytes.
Public fieldStatic memberUnitW
Defines a unit-length Vector4 that points towards the W-axis.
Public fieldStatic memberUnitX
Defines a unit-length Vector4 that points towards the X-axis.
Public fieldStatic memberUnitY
Defines a unit-length Vector4 that points towards the Y-axis.
Public fieldStatic memberUnitZ
Defines a unit-length Vector4 that points towards the Z-axis.
Public fieldW
The W component of the Vector4.
Public fieldX
The X component of the Vector4.
Public fieldY
The Y component of the Vector4.
Public fieldZ
The Z component of the Vector4.
Public fieldStatic memberZero
Defines a zero-length Vector4.
Top
Extension Methods

  NameDescription
Public Extension MethodToColor
Converts this Vector4 instance into a Color.

[ILNumerics Visualization Engine]

(Defined by ExtensionMethods.)
Top
Remarks

The Vector4 structure is suitable for interoperation with unmanaged code requiring four consecutive floats.

[ILNumerics Visualization Engine]

See Also

Reference