Updated documentation on Vector4(Vector3) constructor to state that the w component is initialized to 0.

This commit is contained in:
the_fiddler 2010-11-24 20:50:47 +00:00
parent 5639c5a4dc
commit 0153acb799
2 changed files with 4 additions and 0 deletions

View file

@ -137,8 +137,10 @@ namespace OpenTK
/// <summary>
/// Constructs a new Vector4 from the given Vector3.
/// The w component is initialized to 0.
/// </summary>
/// <param name="v">The Vector3 to copy components from.</param>
/// <remarks><seealso cref="Vector4(Vector3d, double)"/></remarks>
public Vector4(Vector3 v)
{
X = v.X;

View file

@ -135,8 +135,10 @@ namespace OpenTK
/// <summary>
/// Constructs a new Vector4d from the given Vector3d.
/// The w component is initialized to 0.
/// </summary>
/// <param name="v">The Vector3d to copy components from.</param>
/// <remarks><seealso cref="Vector4d(Vector3d, double)"/></remarks>
public Vector4d(Vector3d v)
{
X = v.X;