Click or drag to resize

Vector4 Structure

Describes a 4D-vector.
Inheritance Hierarchy
SystemObject
  SystemValueType
    CFX.Structures.GeometryVector4

Namespace: CFX.Structures.Geometry
Assembly: CFX (in CFX.dll) Version: 1.7.3
Syntax
[SerializableAttribute]
public struct Vector4 : IEquatable<Vector4>

The Vector4 type exposes the following members.

Constructors
 NameDescription
Public methodVector4(Double) Constructs a 4d vector with X, Y, Z and W set to the same value.
Public methodVector4(Vector3, Double) Constructs a 3d vector with X, Y, Z from Vector3 and W from a scalar.
Public methodVector4(Vector2, Double, Double) Constructs a 3d vector with X and Z from Vector2 and Z and W from the scalars.
Public methodVector4(Double, Double, Double, Double) Constructs a 3d vector with X, Y, Z and W from four values.
Top
Properties
 NameDescription
Public propertyStatic memberOne Returns a Vector4 with components 1, 1, 1, 1.
Public propertyStatic memberUnitW Returns a Vector4 with components 0, 0, 0, 1.
Public propertyStatic memberUnitX Returns a Vector4 with components 1, 0, 0, 0.
Public propertyStatic memberUnitY Returns a Vector4 with components 0, 1, 0, 0.
Public propertyStatic memberUnitZ Returns a Vector4 with components 0, 0, 1, 0.
Public propertyStatic memberZero Returns a Vector4 with components 0, 0, 0, 0.
Top
Methods
 NameDescription
Public methodStatic memberAdd(Vector4, Vector4) Performs vector addition on value1 and value2.
Public methodStatic memberAdd(Vector4, Vector4, Vector4) Performs vector addition on value1 and value2, storing the result of the addition in result.
Public methodStatic memberBarycentric(Vector4, Vector4, Vector4, Double, Double) Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle.
Public methodStatic memberBarycentric(Vector4, Vector4, Vector4, Double, Double, Vector4) Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle.
Public methodStatic memberCatmullRom(Vector4, Vector4, Vector4, Vector4, Double) Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors.
Public methodStatic memberCatmullRom(Vector4, Vector4, Vector4, Vector4, Double, Vector4) Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors.
Public methodStatic memberClamp(Vector4, Vector4, Vector4) Clamps the specified value within a range.
Public methodStatic memberClamp(Vector4, Vector4, Vector4, Vector4) Clamps the specified value within a range.
Public methodStatic memberDistance(Vector4, Vector4) Returns the distance between two vectors.
Public methodStatic memberDistance(Vector4, Vector4, Double) Returns the distance between two vectors.
Public methodStatic memberDistanceSquared(Vector4, Vector4) Returns the squared distance between two vectors.
Public methodStatic memberDistanceSquared(Vector4, Vector4, Double) Returns the squared distance between two vectors.
Public methodStatic memberDivide(Vector4, Vector4) Divides the components of a Vector4 by the components of another Vector4.
Public methodStatic memberDivide(Vector4, Double) Divides the components of a Vector4 by a scalar.
Public methodStatic memberDivide(Vector4, Vector4, Vector4) Divides the components of a Vector4 by the components of another Vector4.
Public methodStatic memberDivide(Vector4, Double, Vector4) Divides the components of a Vector4 by a scalar.
Public methodStatic memberDot(Vector4, Vector4) Returns a dot product of two vectors.
Public methodStatic memberDot(Vector4, Vector4, Double) Returns a dot product of two vectors.
Public methodEquals(Object) Compares whether current instance is equal to specified Object.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Vector4) Compares whether current instance is equal to specified Vector4.
Public methodGetHashCode Gets the hash code of this Vector4.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberHermite(Vector4, Vector4, Vector4, Vector4, Double) Creates a new Vector4 that contains hermite spline interpolation.
Public methodStatic memberHermite(Vector4, Vector4, Vector4, Vector4, Double, Vector4) Creates a new Vector4 that contains hermite spline interpolation.
Public methodLength Returns the length of this Vector4.
Public methodLengthSquared Returns the squared length of this Vector4.
Public methodStatic memberLerp(Vector4, Vector4, Double) Creates a new Vector4 that contains linear interpolation of the specified vectors.
Public methodStatic memberLerp(Vector4, Vector4, Double, Vector4) Creates a new Vector4 that contains linear interpolation of the specified vectors.
Public methodStatic memberMax(Vector4, Vector4) Creates a new Vector4 that contains a maximal values from the two vectors.
Public methodStatic memberMax(Vector4, Vector4, Vector4) Creates a new Vector4 that contains a maximal values from the two vectors.
Public methodStatic memberMin(Vector4, Vector4) Creates a new Vector4 that contains a minimal values from the two vectors.
Public methodStatic memberMin(Vector4, Vector4, Vector4) Creates a new Vector4 that contains a minimal values from the two vectors.
Public methodStatic memberMultiply(Vector4, Vector4) Creates a new Vector4 that contains a multiplication of two vectors.
Public methodStatic memberMultiply(Vector4, Double) Creates a new Vector4 that contains a multiplication of Vector4 and a scalar.
Public methodStatic memberMultiply(Vector4, Vector4, Vector4) Creates a new Vector4 that contains a multiplication of two vectors.
Public methodStatic memberMultiply(Vector4, Double, Vector4) Creates a new Vector4 that contains a multiplication of Vector4 and a scalar.
Public methodStatic memberNegate(Vector4) Creates a new Vector4 that contains the specified vector inversion.
Public methodStatic memberNegate(Vector4, Vector4) Creates a new Vector4 that contains the specified vector inversion.
Public methodNormalize Turns this Vector4 to a unit vector with the same direction.
Public methodStatic memberNormalize(Vector4) Creates a new Vector4 that contains a normalized values from another vector.
Public methodStatic memberNormalize(Vector4, Vector4) Creates a new Vector4 that contains a normalized values from another vector.
Public methodStatic memberSmoothStep(Vector4, Vector4, Double) Creates a new Vector4 that contains cubic interpolation of the specified vectors.
Public methodStatic memberSmoothStep(Vector4, Vector4, Double, Vector4) Creates a new Vector4 that contains cubic interpolation of the specified vectors.
Public methodStatic memberSubtract(Vector4, Vector4) Creates a new Vector4 that contains subtraction of on Vector4 from a another.
Public methodStatic memberSubtract(Vector4, Vector4, Vector4) Creates a new Vector4 that contains subtraction of on Vector4 from a another.
Public methodToString Represents the vector in string format
(Overrides ValueTypeToString)
Public methodStatic memberTransform(Vector2, Matrix44) Creates a new Vector4 that contains a transformation of 2d-vector by the specified Matrix44.
Public methodStatic memberTransform(Vector2, Quaternion) Creates a new Vector4 that contains a transformation of 2d-vector by the specified Quaternion.
Public methodStatic memberTransform(Vector3, Matrix44) Creates a new Vector4 that contains a transformation of 3d-vector by the specified Matrix44.
Public methodStatic memberTransform(Vector3, Quaternion) Creates a new Vector4 that contains a transformation of 3d-vector by the specified Quaternion.
Public methodStatic memberTransform(Vector4, Matrix44) Creates a new Vector4 that contains a transformation of 4d-vector by the specified Matrix44.
Public methodStatic memberTransform(Vector4, Quaternion) Creates a new Vector4 that contains a transformation of 4d-vector by the specified Quaternion.
Public methodStatic memberTransform(Vector2, Matrix44, Vector4) Creates a new Vector4 that contains a transformation of 2d-vector by the specified Matrix44.
Public methodStatic memberTransform(Vector2, Quaternion, Vector4) Creates a new Vector4 that contains a transformation of 2d-vector by the specified Quaternion.
Public methodStatic memberTransform(Vector3, Matrix44, Vector4) Creates a new Vector4 that contains a transformation of 3d-vector by the specified Matrix44.
Public methodStatic memberTransform(Vector3, Quaternion, Vector4) Creates a new Vector4 that contains a transformation of 3d-vector by the specified Quaternion.
Public methodStatic memberTransform(Vector4, Matrix44, Vector4) Creates a new Vector4 that contains a transformation of 4d-vector by the specified Matrix44.
Public methodStatic memberTransform(Vector4, Quaternion, Vector4) Creates a new Vector4 that contains a transformation of 4d-vector by the specified Quaternion.
Public methodStatic memberTransform(Vector4, Matrix44, Vector4) Apply transformation on all vectors within array of Vector4 by the specified Matrix44 and places the results in an another array.
Public methodStatic memberTransform(Vector4, Quaternion, Vector4) Apply transformation on all vectors within array of Vector4 by the specified Quaternion and places the results in an another array.
Public methodStatic memberTransform(Vector4, Int32, Matrix44, Vector4, Int32, Int32) Apply transformation on vectors within array of Vector4 by the specified Matrix44 and places the results in an another array.
Public methodStatic memberTransform(Vector4, Int32, Quaternion, Vector4, Int32, Int32) Apply transformation on vectors within array of Vector4 by the specified Quaternion and places the results in an another array.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Vector4, Vector4) Adds two vectors
Public operatorStatic memberDivision(Vector4, Vector4) Divides one vector by another
Public operatorStatic memberDivision(Vector4, Double) Divides a vector by a floating point value
Public operatorStatic memberEquality(Vector4, Vector4) Determines equality between two vecrors
Public operatorStatic memberInequality(Vector4, Vector4) Determines if two vectors are not equal
Public operatorStatic memberMultiply(Double, Vector4) Scales a vector
Public operatorStatic memberMultiply(Vector4, Vector4) Multiples two vectors
Public operatorStatic memberMultiply(Vector4, Double) Scales a vactor
Public operatorStatic memberSubtraction(Vector4, Vector4) Subtracts two vectors
Public operatorStatic memberUnaryNegation(Vector4) Subtracts one vector from another
Top
Fields
 NameDescription
Public fieldW The w coordinate of this Vector4.
Public fieldX The x coordinate of this Vector4.
Public fieldY The y coordinate of this Vector4.
Public fieldZ The z coordinate of this Vector4.
Top
See Also