Click or drag to resize
Accord.NET (logo)

Vector3ToVector4 Method

Converts the vector to a 4D vector.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public Vector4 ToVector4()
Request Example View Source

Return Value

Type: Vector4
Returns 4D vector which is an extension of the 3D vector.

The method returns a 4D vector which has X, Y and Z coordinates equal to the coordinates of this 3D vector and W coordinate set to 1.0.

See Also