Click or drag to resize

Vector4D Structure

Represents 4D vectors and points.

Namespace:  LightBuzz
Assembly:  LightBuzz (in LightBuzz.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public struct Vector4D

The Vector4D type exposes the following members.

Constructors
  NameDescription
Public methodVector4D(Single, Single)
Constructs a new vector with given X and Y components.
Public methodVector4D(Single, Single, Single)
Constructs a new vector with given X, Y, and Z components.
Public methodVector4D(Single, Single, Single, Single)
Constructs a new vector with given X, Y, Z, and W components.
Top
Properties
  NameDescription
Public propertyItem
Access the X, Y, Z, W components of the vector using [0], [1], [2], [3] respectively.
Public propertyLength
Returns the length of the current vector.
Public propertyLengthSquared
Returns the squared length of the current vector.
Public propertyMagnitude
Returns the length of the current vector.
Public propertyMagnitudeSquared
Returns the squared length of the current vector.
Top
Methods
  NameDescription
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAngle
Returns the angle (in degrees) between two vectors.
Public methodStatic memberDivide
Divides a vector by a number.
Public methodStatic memberDot
Returns the dot product of two vectors.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberEquals(Vector4D, Vector4D)
Specifies whether two vectors are approximately equal.
Public methodGetHashCode
Returns the hash code of the current object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberLerp
Linearly interpolates between two vectors by t.
Public methodStatic memberMultiply(Single, Vector4D)
Multiplies a vector by a number.
Public methodStatic memberMultiply(Vector4D, Vector3D)
Multiplies the given rotation around the given point.
Public methodStatic memberMultiply(Vector4D, Vector4D)
Multiplies a vector with another vector.
Public methodStatic memberMultiply(Vector4D, Single)
Multiplies a vector by a number.
Public methodStatic memberNegate
Negates every component of the specified vector.
Public methodNormalize
Makes the current vector have a magnitude of 1.
Public methodStatic memberNormalize(Vector4D)
Makes the specified vector have a magnitude of 1.
Public methodSet
Sets the X, Y, Z, and W components of the current vector.
Public methodStatic memberSubtract
Subtracts the second vector from the first vector.
Public methodToString
Returns a string representation of the current object.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two vectors.
Public operatorStatic memberDivision
Divides a vector by a number.
Public operatorStatic memberEquality
Compares two vectors for equality.
Public operatorStatic memberGreaterThan
Compares the lengths of two vectors.
Public operatorStatic memberGreaterThanOrEqual
Compares the lengths of two vectors.
Public operatorStatic member(Quaternion to Vector4D)
Converts the specified Unity Quaternion into its equivalent 4D vector.
Public operatorStatic member(Vector4 to Vector4D)
Converts the specified Unity Vector4 into its equivalent 4D vector.
Public operatorStatic member(Vector2D to Vector4D)
Converts the specified 2D vector into its equivalent 4D vector.
Public operatorStatic member(Vector3D to Vector4D)
Converts the specified 3D vector into its equivalent 4D vector.
Public operatorStatic member(Vector4D to Vector4)
Converts the specified 4D vector into its equivalent Unity Vector4.
Public operatorStatic member(Vector4D to Quaternion)
Converts the specified 4D vector into its equivalent Unity Quaternion.
Public operatorStatic memberInequality
Compares two vectors for inequality.
Public operatorStatic memberLessThan
Compares the lengths of two vectors.
Public operatorStatic memberLessThanOrEqual
Compares the lengths of two vectors.
Public operatorStatic memberMultiply(Single, Vector4D)
Multiplies a number by a vector.
Public operatorStatic memberMultiply(Vector4D, Vector3D)
Multiplies a 4D vector by 3D point.
Public operatorStatic memberMultiply(Vector4D, Vector4D)
Multiplies a vector by another one.
Public operatorStatic memberMultiply(Vector4D, Single)
Multiplies a vector by a number.
Public operatorStatic memberSubtraction
Subtracts one vector from another.
Public operatorStatic memberUnaryNegation
Negates a vector.
Top
Fields
  NameDescription
Public fieldStatic memberNegativeInfinity
Shorthand for (-∞, -∞, -∞, -∞).
Public fieldStatic memberOne
Shorthand for (1, 1, 1, 1).
Public fieldStatic memberPositiveInfinity
Shorthand for (+∞, +∞, +∞, +∞).
Public fieldW
W component of the vector.
Public fieldX
X component of the vector.
Public fieldY
Y component of the vector.
Public fieldZ
Z component of the vector.
Public fieldStatic memberZero
Shorthand for (0, 0, 0, 0).
Top
Extension Methods
  NameDescription
Public Extension MethodToStringDetailed
Displays the current vector as a detailed string.
(Defined by UnityExtensions.)
Public Extension MethodToVector4
Converts the current LightBuzz 4D vector into its equivalent Microsoft Vector4.
(Defined by Kinect2Extensions.)
Top
See Also