Click or drag to resize

Vector3D Structure

Represents 3D vectors and points.

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

The Vector3D type exposes the following members.

Constructors
  NameDescription
Public methodVector3D(Single, Single)
Constructs a new vector with given X and Y components.
Public methodVector3D(Single, Single, Single)
Constructs a new vector with given X, Y, and Z components.
Top
Properties
  NameDescription
Public propertyItem
Access the X, Y, Z components of the vector using [0], [1], [2] 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.
Public propertyNormalized
Returns the current vector with a length of 1.
Top
Methods
  NameDescription
Public methodStatic memberAdd
Adds two vectors.
Public methodAngle(Vector3D)
Returns the angle (in degrees) between the current and the specified vector.
Public methodStatic memberAngle(Vector3D, Vector3D)
Returns the angle (in degrees) between two vectors.
Public methodStatic memberCross
Returns the cross product of two vectors.
Public methodDistance(Vector3D)
Returns the distance between the current vector and the specified vector.
Public methodStatic memberDistance(Vector3D, Vector3D)
Returns the distance 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(Vector3D, Vector3D)
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 memberMax
Returns the vector with the maximum length.
Public methodStatic memberMin
Returns the vector with the minimum length.
Public methodStatic memberMultiply(Single, Vector3D)
Multiplies a vector by a number.
Public methodStatic memberMultiply(Vector3D, Single)
Multiplies a vector by a number.
Public methodNegate
Negates every component of the current vector.
Public methodStatic memberNegate(Vector3D)
Negates every component of the specified vector.
Public methodNormalize
Makes the current vector have a magnitude of 1.
Public methodStatic memberNormalize(Vector3D)
Makes the specified vector have a magnitude of 1.
Public methodStatic memberPitch
Pitch.
Public methodStatic memberRoll
Roll.
Public methodSet
Sets the X, Y and Z 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.)
Public methodStatic memberYaw
Yaw.
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(Vector3 to Vector3D)
Converts the specified Unity Vector3 into its equivalent 3D vector.
Public operatorStatic member(Vector2D to Vector3D)
Converts the specified 2D vector into its equivalent 3D vector.
Public operatorStatic member(Vector3D to Vector3)
Converts the specified 3D vector into its equivalent Unity Vector3.
Public operatorStatic member(Vector4D to Vector3D)
Converts the specified 4D vector into its equivalent 3D vector.
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, Vector3D)
Multiplies a number by a vector.
Public operatorStatic memberMultiply(Vector3D, 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 memberBack
Shorthand for (0, 0, -1).
Public fieldStatic memberDown
Shorthand for (0, -1, 0).
Public fieldStatic memberForward
Shorthand for (0, 0, 1).
Public fieldStatic memberLeft
Shorthand for (-1, 0, 0).
Public fieldStatic memberNegativeInfinity
Shorthand for (-∞, -∞, -∞).
Public fieldStatic memberOne
Shorthand for (1, 1, 1).
Public fieldStatic memberPositiveInfinity
Shorthand for (+∞, +∞, +∞).
Public fieldStatic memberRight
Shorthand for (1, 0, 0).
Public fieldStatic memberUp
Shorthand for (0, 1, 0).
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).
Top
Extension Methods
  NameDescription
Public Extension MethodToCameraSpacePoint
Converts the current LightBuzz 3D vector into its equivalent Microsoft CameraSpacePoint.
(Defined by Kinect2Extensions.)
Public Extension MethodToStringDetailed
Displays the current vector as a detailed string.
(Defined by UnityExtensions.)
Public Extension MethodToVector3
Converts the current LightBuzz vector to a Nuitrack vector.
(Defined by NuitrackExtensions.)
Top
See Also