Added all swizzle permutations up to the vector's dimension.
This commit is contained in:
parent
819c02c445
commit
59c652aaf8
9 changed files with 6746 additions and 10 deletions
|
@ -24,6 +24,8 @@ SOFTWARE.
|
|||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace OpenTK
|
||||
{
|
||||
/// <summary>Represents a 2D vector using two single-precision floating-point numbers.</summary>
|
||||
|
@ -971,6 +973,28 @@ namespace OpenTK
|
|||
|
||||
#endregion
|
||||
|
||||
#region Swizzle
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the X component of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Xx { get { return new Vector2(X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Y and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Yx { get { return new Vector2(Y, X); } set { Y = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Y component of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Yy { get { return new Vector2(Y, Y); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,6 +24,7 @@ SOFTWARE.
|
|||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace OpenTK
|
||||
{
|
||||
|
@ -833,6 +834,28 @@ namespace OpenTK
|
|||
|
||||
#endregion
|
||||
|
||||
#region Swizzle
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the X component of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Xx { get { return new Vector2d(X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Y and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Yx { get { return new Vector2d(Y, X); } set { Y = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Y component of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Yy { get { return new Vector2d(Y, Y); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -26,6 +26,7 @@ using System;
|
|||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace OpenTK
|
||||
{
|
||||
|
@ -192,6 +193,28 @@ namespace OpenTK
|
|||
|
||||
#endregion Constructors
|
||||
|
||||
#region Swizzle
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the X component of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Xx { get { return new Vector2h(X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Y and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Yx { get { return new Vector2h(Y, X); } set { Y = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Y component of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Yy { get { return new Vector2h(Y, Y); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Half -> Single
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -1213,12 +1213,224 @@ namespace OpenTK
|
|||
|
||||
#region Swizzle
|
||||
|
||||
#region 2-component
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the X and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Xx { get { return new Vector2(X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the X and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Xy { get { return new Vector2(X, Y); } set { X = value.X; Y = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the X and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Xz { get { return new Vector2(X, Z); } set { X = value.X; Z = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Y and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Yx { get { return new Vector2(Y, X); } set { Y = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Y and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Yy { get { return new Vector2(Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Y and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Yz { get { return new Vector2(Y, Z); } set { Y = value.X; Z = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Z and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Zx { get { return new Vector2(Z, X); } set { Z = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Z and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Zy { get { return new Vector2(Z, Y); } set { Z = value.X; Y = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2 with the Z and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2 Zz { get { return new Vector2(Z, Z); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region 3-component
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xxx { get { return new Vector3(X, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xxy { get { return new Vector3(X, X, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, X and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xxz { get { return new Vector3(X, X, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xyx { get { return new Vector3(X, Y, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xyy { get { return new Vector3(X, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xzx { get { return new Vector3(X, Z, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xzy { get { return new Vector3(X, Z, Y); } set { X = value.X; Z = value.Y; Y = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the X, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Xzz { get { return new Vector3(X, Z, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yxx { get { return new Vector3(Y, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yxy { get { return new Vector3(Y, X, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, X, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yxz { get { return new Vector3(Y, X, Z); } set { Y = value.X; X = value.Y; Z = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yyx { get { return new Vector3(Y, Y, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yyy { get { return new Vector3(Y, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, Y, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yyz { get { return new Vector3(Y, Y, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yzx { get { return new Vector3(Y, Z, X); } set { Y = value.X; Z = value.Y; X = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yzy { get { return new Vector3(Y, Z, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Y, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Yzz { get { return new Vector3(Y, Z, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zxx { get { return new Vector3(Z, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zxy { get { return new Vector3(Z, X, Y); } set { Z = value.X; X = value.Y; Y = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, X, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zxz { get { return new Vector3(Z, X, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zyx { get { return new Vector3(Z, Y, X); } set { Z = value.X; Y = value.Y; X = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zyy { get { return new Vector3(Z, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, Y, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zyz { get { return new Vector3(Z, Y, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zzx { get { return new Vector3(Z, Z, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zzy { get { return new Vector3(Z, Z, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3 with the Z, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3 Zzz { get { return new Vector3(Z, Z, Z); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
|
|
@ -1210,12 +1210,224 @@ namespace OpenTK
|
|||
|
||||
#region Swizzle
|
||||
|
||||
#region 2-component
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the X and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Xx { get { return new Vector2d(X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the X and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Xy { get { return new Vector2d(X, Y); } set { X = value.X; Y = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the X and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Xz { get { return new Vector2d(X, Z); } set { X = value.X; Z = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Y and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Yx { get { return new Vector2d(Y, X); } set { Y = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Y and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Yy { get { return new Vector2d(Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Y and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Yz { get { return new Vector2d(Y, Z); } set { Y = value.X; Z = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Z and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Zx { get { return new Vector2d(Z, X); } set { Z = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Z and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Zy { get { return new Vector2d(Z, Y); } set { Z = value.X; Y = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2d with the Z and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2d Zz { get { return new Vector2d(Z, Z); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region 3-component
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xxx { get { return new Vector3d(X, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xxy { get { return new Vector3d(X, X, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, X and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xxz { get { return new Vector3d(X, X, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xyx { get { return new Vector3d(X, Y, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xyy { get { return new Vector3d(X, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xzx { get { return new Vector3d(X, Z, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xzy { get { return new Vector3d(X, Z, Y); } set { X = value.X; Z = value.Y; Y = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the X, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Xzz { get { return new Vector3d(X, Z, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yxx { get { return new Vector3d(Y, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yxy { get { return new Vector3d(Y, X, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, X, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yxz { get { return new Vector3d(Y, X, Z); } set { Y = value.X; X = value.Y; Z = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yyx { get { return new Vector3d(Y, Y, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yyy { get { return new Vector3d(Y, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, Y, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yyz { get { return new Vector3d(Y, Y, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yzx { get { return new Vector3d(Y, Z, X); } set { Y = value.X; Z = value.Y; X = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yzy { get { return new Vector3d(Y, Z, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Y, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Yzz { get { return new Vector3d(Y, Z, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zxx { get { return new Vector3d(Z, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zxy { get { return new Vector3d(Z, X, Y); } set { Z = value.X; X = value.Y; Y = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, X, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zxz { get { return new Vector3d(Z, X, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zyx { get { return new Vector3d(Z, Y, X); } set { Z = value.X; Y = value.Y; X = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zyy { get { return new Vector3d(Z, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, Y, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zyz { get { return new Vector3d(Z, Y, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zzx { get { return new Vector3d(Z, Z, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zzy { get { return new Vector3d(Z, Z, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3d with the Z, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3d Zzz { get { return new Vector3d(Z, Z, Z); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
|
|
@ -213,15 +213,227 @@ namespace OpenTK
|
|||
|
||||
#endregion Constructors
|
||||
|
||||
#region Swizzle
|
||||
#region Swizzle
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Xy { get { return new Vector2h(X, Y); } set { X = value.X; Y = value.Y; } }
|
||||
#region 2-component
|
||||
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the X and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Xx { get { return new Vector2h(X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Xy { get { return new Vector2h(X, Y); } set { X = value.X; Y = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the X and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Xz { get { return new Vector2h(X, Z); } set { X = value.X; Z = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Y and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Yx { get { return new Vector2h(Y, X); } set { Y = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Y and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Yy { get { return new Vector2h(Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Y and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Yz { get { return new Vector2h(Y, Z); } set { Y = value.X; Z = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Z and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Zx { get { return new Vector2h(Z, X); } set { Z = value.X; X = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Z and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Zy { get { return new Vector2h(Z, Y); } set { Z = value.X; Y = value.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector2h with the Z and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector2h Zz { get { return new Vector2h(Z, Z); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region 3-component
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xxx { get { return new Vector3h(X, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xxy { get { return new Vector3h(X, X, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, X and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xxz { get { return new Vector3h(X, X, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xyx { get { return new Vector3h(X, Y, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xyy { get { return new Vector3h(X, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xzx { get { return new Vector3h(X, Z, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xzy { get { return new Vector3h(X, Z, Y); } set { X = value.X; Z = value.Y; Y = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the X, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Xzz { get { return new Vector3h(X, Z, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yxx { get { return new Vector3h(Y, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yxy { get { return new Vector3h(Y, X, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, X, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yxz { get { return new Vector3h(Y, X, Z); } set { Y = value.X; X = value.Y; Z = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yyx { get { return new Vector3h(Y, Y, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yyy { get { return new Vector3h(Y, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, Y, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yyz { get { return new Vector3h(Y, Y, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yzx { get { return new Vector3h(Y, Z, X); } set { Y = value.X; Z = value.Y; X = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yzy { get { return new Vector3h(Y, Z, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Y, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Yzz { get { return new Vector3h(Y, Z, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, X, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zxx { get { return new Vector3h(Z, X, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, X, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zxy { get { return new Vector3h(Z, X, Y); } set { Z = value.X; X = value.Y; Y = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, X, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zxz { get { return new Vector3h(Z, X, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, Y, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zyx { get { return new Vector3h(Z, Y, X); } set { Z = value.X; Y = value.Y; X = value.Z; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, Y, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zyy { get { return new Vector3h(Z, Y, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, Y, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zyz { get { return new Vector3h(Z, Y, Z); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, Z, and X components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zzx { get { return new Vector3h(Z, Z, X); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, Z, and Y components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zzy { get { return new Vector3h(Z, Z, Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an OpenTK.Vector3h with the Z, Z, and Z components of this instance.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Vector3h Zzz { get { return new Vector3h(Z, Z, Z); } }
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Half -> Single
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue