|
![]() |
The UnitVector3D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
UnitVector3D(Vector3D) |
Create a unit vector from a vector, normalizing if required
|
![]() |
UnitVector3D(Double, Double, Double) |
Create a unit vector from X, Y and Z components, normalizing if required
|
Methods
Name | Description | |
---|---|---|
![]() |
Add(Double) |
Adds a value to every X, Y and Z coordinate in the Vector and returns a new Vector with the result
|
![]() |
Add(Vector3D) |
Adds a vector to this to produce a new vector
|
![]() |
Angle |
Returns the angle between this vector and another vector in the range [0, PI]
|
![]() |
AngleWithReference |
Returns the angle between this vector and another vector in the range [-PI, PI], using a reference vector to determine the sign of the angle
|
![]() |
Cross |
Returns the cross product between this vector and another
|
![]() |
DirectionEquals(Vector3D) |
Compare with direction of vector using a tolerance
|
![]() |
DirectionEquals(Vector3D, Double) |
Compare with direction of vector using a tolerance
|
![]() |
Dispose()()()() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from NativeHandle.) |
![]() |
Dispose(Boolean) | (Inherited from NativeHandle.) |
![]() |
Divide(Double) |
Divides every X, Y and Z coordinate in the Vector by a value and returns a new Vector with the result
|
![]() |
Divide(Vector3D) |
Divides this vector by another to produce a new vector
|
![]() |
Dot |
Returns the dot product between this vector and another
|
![]() |
Equals | (Overrides NativeHandle..::..Equals(Object).) |
![]() |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from NativeHandle.) |
![]() |
GetHashCode | (Overrides NativeHandle..::..GetHashCode()()()().) |
![]() |
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
Multiply(Double) |
Multiplies every X, Y and Z coordinate in the Vector by a value and returns a new Vector with the result
|
![]() |
Multiply(Vector3D) |
Multiplies a vector by this to produce a new vector
|
![]() |
Negate |
Returns a negated version of this vector (all components negated)
|
![]() |
Subtract(Double) |
Subtracts a value from every X, Y and Z coordinate in the Vector and returns a new Vector with the result
|
![]() |
Subtract(Vector3D) |
Subtracts a vector from this to produce a new vector
|
![]() |
TolerantEquals(UnitVector3D) |
Compare unit vectors using a tolerance
|
![]() ![]() |
TolerantEquals(UnitVector3D, UnitVector3D) |
Compare vectors using a tolerance
|
![]() |
TolerantEquals(UnitVector3D, Double) |
Compare unit vectors using a tolerance
|
![]() ![]() |
TolerantEquals(UnitVector3D, UnitVector3D, Double) |
Compare vectors using a tolerance
|
![]() |
ToString | (Overrides NativeHandle..::..ToString()()()().) |
![]() |
ToVector3D |
Convert unit vector to a vector
|
Operators
Name | Description | |
---|---|---|
![]() ![]() |
Addition(Double, UnitVector3D) |
Adds a value to every X, Y and Z coordinate in the Vector and returns a new Vector with the result
|
![]() ![]() |
Addition(UnitVector3D, UnitVector3D) |
Adds two vectors to produce a new vector
|
![]() ![]() |
Addition(UnitVector3D, Vector3D) |
Adds two vectors to produce a new vector
|
![]() ![]() |
Addition(UnitVector3D, Double) |
Adds a value to every X, Y and Z coordinate in the Vector and returns a new Vector with the result
|
![]() ![]() |
Addition(Vector3D, UnitVector3D) |
Adds two vectors to produce a new vector
|
![]() ![]() |
Division |
Divides every X, Y and Z coordinate in the Vector by a value and returns a new Vector with the result
|
![]() ![]() |
Implicit Widening Implicit Implicit Implicit (UnitVector3D to Vector3D) |
Converts a UnitVector3D to a Vector3D
|
![]() ![]() |
Multiply(Double, UnitVector3D) |
Multiplies every X, Y and Z coordinate in the Vector by a value and returns a new Vector with the result
|
![]() ![]() |
Multiply(UnitVector3D, Double) |
Multiplies every X, Y and Z coordinate in the Vector by a value and returns a new Vector with the result
|
![]() ![]() |
Subtraction(UnitVector3D, UnitVector3D) |
Subtracts two vectors to produce a new vector
|
![]() ![]() |
Subtraction(UnitVector3D, Vector3D) |
Subtracts two vectors to produce a new vector
|
![]() ![]() |
Subtraction(UnitVector3D, Double) |
Subtracts a value from every X, Y and Z coordinate in the Vector and returns a new Vector with the result
|
![]() ![]() |
Subtraction(Vector3D, UnitVector3D) |
Subtracts two vectors to produce a new vector
|
Properties
Name | Description | |
---|---|---|
![]() |
IsDisposed |
Gets a value indicating whether the object has been disposed and is no longer available.
(Inherited from NativeHandle.) |
![]() |
IsReadOnly | (Overrides NativeHandle..::..IsReadOnly.) |
![]() |
IsZero |
Is this a zero vector ? Will occur if all inputs to constructor are zero.
|
![]() |
Item | |
![]() ![]() |
UnitX |
Returns a unit vector in the X direction (1,0,0)
|
![]() ![]() |
UnitY |
Returns a unit vector in the Y direction (0,1,0)
|
![]() ![]() |
UnitZ |
Returns a unit vector in the Z direction (0,0,1)
|
![]() |
X |
Returns the X component of the vector
|
![]() |
Y |
Returns the Y component of the vector
|
![]() |
Z |
Returns the Z component of the vector
|