Skip to content

Instantly share code, notes, and snippets.

@hclarke

hclarke/Swizzle.cs

Created Sep 8, 2016
Embed
What would you like to do?
Swizzle extension methods for Unity
/*
Copyright (c) 2016 Harrison Clarke
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
using UnityEngine;
public static class Swizzle {
#region Vector2
///<summary>
///Get the x component of self
///</summary>
public static float x(this Vector2 self) {
return self.x;
}
///<summary>
///Set the x component of self
///</summary>
public static Vector2 x(this Vector2 self, float x) {
self.x = x;
return self;
}
///<summary>
///Get the y component of self
///</summary>
public static float y(this Vector2 self) {
return self.y;
}
///<summary>
///Set the y component of self
///</summary>
public static Vector2 y(this Vector2 self, float y) {
self.y = y;
return self;
}
///<summary>
///Get the x and x components of self as a Vector2
///</summary>
public static Vector2 xx(this Vector2 self) {
return new Vector2(
self.x,
self.x
);
}
///<summary>
///Get the y and x components of self as a Vector2
///</summary>
public static Vector2 yx(this Vector2 self) {
return new Vector2(
self.y,
self.x
);
}
///<summary>
///Set the y and x components of self from a Vector2
///</summary>
public static Vector2 yx(this Vector2 self, Vector2 v) {
self.y = v.x;
self.x = v.y;
return self;
}
///<summary>
///Set the y and x components of self
///</summary>
public static Vector2 yx(this Vector2 self, float y, float x) {
self.y = y;
self.x = x;
return self;
}
///<summary>
///Set the y and x components of self to a value
///</summary>
public static Vector2 yx(this Vector2 self, float value) {
self.y = value;
self.x = value;
return self;
}
///<summary>
///Get the x and y components of self as a Vector2
///</summary>
public static Vector2 xy(this Vector2 self) {
return new Vector2(
self.x,
self.y
);
}
///<summary>
///Set the x and y components of self from a Vector2
///</summary>
public static Vector2 xy(this Vector2 self, Vector2 v) {
self.x = v.x;
self.y = v.y;
return self;
}
///<summary>
///Set the x and y components of self
///</summary>
public static Vector2 xy(this Vector2 self, float x, float y) {
self.x = x;
self.y = y;
return self;
}
///<summary>
///Set the x and y components of self to a value
///</summary>
public static Vector2 xy(this Vector2 self, float value) {
self.x = value;
self.y = value;
return self;
}
///<summary>
///Get the y and y components of self as a Vector2
///</summary>
public static Vector2 yy(this Vector2 self) {
return new Vector2(
self.y,
self.y
);
}
///<summary>
///Get the x, x, and x components of self as a Vector3
///</summary>
public static Vector3 xxx(this Vector2 self) {
return new Vector3(
self.x,
self.x,
self.x
);
}
///<summary>
///Get the y, x, and x components of self as a Vector3
///</summary>
public static Vector3 yxx(this Vector2 self) {
return new Vector3(
self.y,
self.x,
self.x
);
}
///<summary>
///Get the x, y, and x components of self as a Vector3
///</summary>
public static Vector3 xyx(this Vector2 self) {
return new Vector3(
self.x,
self.y,
self.x
);
}
///<summary>
///Get the y, y, and x components of self as a Vector3
///</summary>
public static Vector3 yyx(this Vector2 self) {
return new Vector3(
self.y,
self.y,
self.x
);
}
///<summary>
///Get the x, x, and y components of self as a Vector3
///</summary>
public static Vector3 xxy(this Vector2 self) {
return new Vector3(
self.x,
self.x,
self.y
);
}
///<summary>
///Get the y, x, and y components of self as a Vector3
///</summary>
public static Vector3 yxy(this Vector2 self) {
return new Vector3(
self.y,
self.x,
self.y
);
}
///<summary>
///Get the x, y, and y components of self as a Vector3
///</summary>
public static Vector3 xyy(this Vector2 self) {
return new Vector3(
self.x,
self.y,
self.y
);
}
///<summary>
///Get the y, y, and y components of self as a Vector3
///</summary>
public static Vector3 yyy(this Vector2 self) {
return new Vector3(
self.y,
self.y,
self.y
);
}
///<summary>
///Get the x, x, x, and x components of self as a Vector4
///</summary>
public static Vector4 xxxx(this Vector2 self) {
return new Vector4(
self.x,
self.x,
self.x,
self.x
);
}
///<summary>
///Get the y, x, x, and x components of self as a Vector4
///</summary>
public static Vector4 yxxx(this Vector2 self) {
return new Vector4(
self.y,
self.x,
self.x,
self.x
);
}
///<summary>
///Get the x, y, x, and x components of self as a Vector4
///</summary>
public static Vector4 xyxx(this Vector2 self) {
return new Vector4(
self.x,
self.y,
self.x,
self.x
);
}
///<summary>
///Get the y, y, x, and x components of self as a Vector4
///</summary>
public static Vector4 yyxx(this Vector2 self) {
return new Vector4(
self.y,
self.y,
self.x,
self.x
);
}
///<summary>
///Get the x, x, y, and x components of self as a Vector4
///</summary>
public static Vector4 xxyx(this Vector2 self) {
return new Vector4(
self.x,
self.x,
self.y,
self.x
);
}
///<summary>
///Get the y, x, y, and x components of self as a Vector4
///</summary>
public static Vector4 yxyx(this Vector2 self) {
return new Vector4(
self.y,
self.x,
self.y,
self.x
);
}
///<summary>
///Get the x, y, y, and x components of self as a Vector4
///</summary>
public static Vector4 xyyx(this Vector2 self) {
return new Vector4(
self.x,
self.y,
self.y,
self.x
);
}
///<summary>
///Get the y, y, y, and x components of self as a Vector4
///</summary>
public static Vector4 yyyx(this Vector2 self) {
return new Vector4(
self.y,
self.y,
self.y,
self.x
);
}
///<summary>
///Get the x, x, x, and y components of self as a Vector4
///</summary>
public static Vector4 xxxy(this Vector2 self) {
return new Vector4(
self.x,
self.x,
self.x,
self.y
);
}
///<summary>
///Get the y, x, x, and y components of self as a Vector4
///</summary>
public static Vector4 yxxy(this Vector2 self) {
return new Vector4(
self.y,
self.x,
self.x,
self.y
);
}
///<summary>
///Get the x, y, x, and y components of self as a Vector4
///</summary>
public static Vector4 xyxy(this Vector2 self) {
return new Vector4(
self.x,
self.y,
self.x,
self.y
);
}
///<summary>
///Get the y, y, x, and y components of self as a Vector4
///</summary>
public static Vector4 yyxy(this Vector2 self) {
return new Vector4(
self.y,
self.y,
self.x,
self.y
);
}
///<summary>
///Get the x, x, y, and y components of self as a Vector4
///</summary>
public static Vector4 xxyy(this Vector2 self) {
return new Vector4(
self.x,
self.x,
self.y,
self.y
);
}
///<summary>
///Get the y, x, y, and y components of self as a Vector4
///</summary>
public static Vector4 yxyy(this Vector2 self) {
return new Vector4(
self.y,
self.x,
self.y,
self.y
);
}
///<summary>
///Get the x, y, y, and y components of self as a Vector4
///</summary>
public static Vector4 xyyy(this Vector2 self) {
return new Vector4(
self.x,
self.y,
self.y,
self.y
);
}
///<summary>
///Get the y, y, y, and y components of self as a Vector4
///</summary>
public static Vector4 yyyy(this Vector2 self) {
return new Vector4(
self.y,
self.y,
self.y,
self.y
);
}
#endregion
#region Vector3
///<summary>
///Get the x component of self
///</summary>
public static float x(this Vector3 self) {
return self.x;
}
///<summary>
///Set the x component of self
///</summary>
public static Vector3 x(this Vector3 self, float x) {
self.x = x;
return self;
}
///<summary>
///Get the y component of self
///</summary>
public static float y(this Vector3 self) {
return self.y;
}
///<summary>
///Set the y component of self
///</summary>
public static Vector3 y(this Vector3 self, float y) {
self.y = y;
return self;
}
///<summary>
///Get the z component of self
///</summary>
public static float z(this Vector3 self) {
return self.z;
}
///<summary>
///Set the z component of self
///</summary>
public static Vector3 z(this Vector3 self, float z) {
self.z = z;
return self;
}
///<summary>
///Get the x and x components of self as a Vector2
///</summary>
public static Vector2 xx(this Vector3 self) {
return new Vector2(
self.x,
self.x
);
}
///<summary>
///Get the y and x components of self as a Vector2
///</summary>
public static Vector2 yx(this Vector3 self) {
return new Vector2(
self.y,
self.x
);
}
///<summary>
///Set the y and x components of self from a Vector2
///</summary>
public static Vector3 yx(this Vector3 self, Vector2 v) {
self.y = v.x;
self.x = v.y;
return self;
}
///<summary>
///Set the y and x components of self
///</summary>
public static Vector3 yx(this Vector3 self, float y, float x) {
self.y = y;
self.x = x;
return self;
}
///<summary>
///Set the y and x components of self to a value
///</summary>
public static Vector3 yx(this Vector3 self, float value) {
self.y = value;
self.x = value;
return self;
}
///<summary>
///Get the z and x components of self as a Vector2
///</summary>
public static Vector2 zx(this Vector3 self) {
return new Vector2(
self.z,
self.x
);
}
///<summary>
///Set the z and x components of self from a Vector2
///</summary>
public static Vector3 zx(this Vector3 self, Vector2 v) {
self.z = v.x;
self.x = v.y;
return self;
}
///<summary>
///Set the z and x components of self
///</summary>
public static Vector3 zx(this Vector3 self, float z, float x) {
self.z = z;
self.x = x;
return self;
}
///<summary>
///Set the z and x components of self to a value
///</summary>
public static Vector3 zx(this Vector3 self, float value) {
self.z = value;
self.x = value;
return self;
}
///<summary>
///Get the x and y components of self as a Vector2
///</summary>
public static Vector2 xy(this Vector3 self) {
return new Vector2(
self.x,
self.y
);
}
///<summary>
///Set the x and y components of self from a Vector2
///</summary>
public static Vector3 xy(this Vector3 self, Vector2 v) {
self.x = v.x;
self.y = v.y;
return self;
}
///<summary>
///Set the x and y components of self
///</summary>
public static Vector3 xy(this Vector3 self, float x, float y) {
self.x = x;
self.y = y;
return self;
}
///<summary>
///Set the x and y components of self to a value
///</summary>
public static Vector3 xy(this Vector3 self, float value) {
self.x = value;
self.y = value;
return self;
}
///<summary>
///Get the y and y components of self as a Vector2
///</summary>
public static Vector2 yy(this Vector3 self) {
return new Vector2(
self.y,
self.y
);
}
///<summary>
///Get the z and y components of self as a Vector2
///</summary>
public static Vector2 zy(this Vector3 self) {
return new Vector2(
self.z,
self.y
);
}
///<summary>
///Set the z and y components of self from a Vector2
///</summary>
public static Vector3 zy(this Vector3 self, Vector2 v) {
self.z = v.x;
self.y = v.y;
return self;
}
///<summary>
///Set the z and y components of self
///</summary>
public static Vector3 zy(this Vector3 self, float z, float y) {
self.z = z;
self.y = y;
return self;
}
///<summary>
///Set the z and y components of self to a value
///</summary>
public static Vector3 zy(this Vector3 self, float value) {
self.z = value;
self.y = value;
return self;
}
///<summary>
///Get the x and z components of self as a Vector2
///</summary>
public static Vector2 xz(this Vector3 self) {
return new Vector2(
self.x,
self.z
);
}
///<summary>
///Set the x and z components of self from a Vector2
///</summary>
public static Vector3 xz(this Vector3 self, Vector2 v) {
self.x = v.x;
self.z = v.y;
return self;
}
///<summary>
///Set the x and z components of self
///</summary>
public static Vector3 xz(this Vector3 self, float x, float z) {
self.x = x;
self.z = z;
return self;
}
///<summary>
///Set the x and z components of self to a value
///</summary>
public static Vector3 xz(this Vector3 self, float value) {
self.x = value;
self.z = value;
return self;
}
///<summary>
///Get the y and z components of self as a Vector2
///</summary>
public static Vector2 yz(this Vector3 self) {
return new Vector2(
self.y,
self.z
);
}
///<summary>
///Set the y and z components of self from a Vector2
///</summary>
public static Vector3 yz(this Vector3 self, Vector2 v) {
self.y = v.x;
self.z = v.y;
return self;
}
///<summary>
///Set the y and z components of self
///</summary>
public static Vector3 yz(this Vector3 self, float y, float z) {
self.y = y;
self.z = z;
return self;
}
///<summary>
///Set the y and z components of self to a value
///</summary>
public static Vector3 yz(this Vector3 self, float value) {
self.y = value;
self.z = value;
return self;
}
///<summary>
///Get the z and z components of self as a Vector2
///</summary>
public static Vector2 zz(this Vector3 self) {
return new Vector2(
self.z,
self.z
);
}
///<summary>
///Get the x, x, and x components of self as a Vector3
///</summary>
public static Vector3 xxx(this Vector3 self) {
return new Vector3(
self.x,
self.x,
self.x
);
}
///<summary>
///Get the y, x, and x components of self as a Vector3
///</summary>
public static Vector3 yxx(this Vector3 self) {
return new Vector3(
self.y,
self.x,
self.x
);
}
///<summary>
///Get the z, x, and x components of self as a Vector3
///</summary>
public static Vector3 zxx(this Vector3 self) {
return new Vector3(
self.z,
self.x,
self.x
);
}
///<summary>
///Get the x, y, and x components of self as a Vector3
///</summary>
public static Vector3 xyx(this Vector3 self) {
return new Vector3(
self.x,
self.y,
self.x
);
}
///<summary>
///Get the y, y, and x components of self as a Vector3
///</summary>
public static Vector3 yyx(this Vector3 self) {
return new Vector3(
self.y,
self.y,
self.x
);
}
///<summary>
///Get the z, y, and x components of self as a Vector3
///</summary>
public static Vector3 zyx(this Vector3 self) {
return new Vector3(
self.z,
self.y,
self.x
);
}
///<summary>
///Set the z, y, and x components of self from a Vector3
///</summary>
public static Vector3 zyx(this Vector3 self, Vector3 v) {
self.z = v.x;
self.y = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the z, y, and x components of self
///</summary>
public static Vector3 zyx(this Vector3 self, float z, float y, float x) {
self.z = z;
self.y = y;
self.x = x;
return self;
}
///<summary>
///Set the z, y, and x components of self to a value
///</summary>
public static Vector3 zyx(this Vector3 self, float value) {
self.z = value;
self.y = value;
self.x = value;
return self;
}
///<summary>
///Get the x, z, and x components of self as a Vector3
///</summary>
public static Vector3 xzx(this Vector3 self) {
return new Vector3(
self.x,
self.z,
self.x
);
}
///<summary>
///Get the y, z, and x components of self as a Vector3
///</summary>
public static Vector3 yzx(this Vector3 self) {
return new Vector3(
self.y,
self.z,
self.x
);
}
///<summary>
///Set the y, z, and x components of self from a Vector3
///</summary>
public static Vector3 yzx(this Vector3 self, Vector3 v) {
self.y = v.x;
self.z = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the y, z, and x components of self
///</summary>
public static Vector3 yzx(this Vector3 self, float y, float z, float x) {
self.y = y;
self.z = z;
self.x = x;
return self;
}
///<summary>
///Set the y, z, and x components of self to a value
///</summary>
public static Vector3 yzx(this Vector3 self, float value) {
self.y = value;
self.z = value;
self.x = value;
return self;
}
///<summary>
///Get the z, z, and x components of self as a Vector3
///</summary>
public static Vector3 zzx(this Vector3 self) {
return new Vector3(
self.z,
self.z,
self.x
);
}
///<summary>
///Get the x, x, and y components of self as a Vector3
///</summary>
public static Vector3 xxy(this Vector3 self) {
return new Vector3(
self.x,
self.x,
self.y
);
}
///<summary>
///Get the y, x, and y components of self as a Vector3
///</summary>
public static Vector3 yxy(this Vector3 self) {
return new Vector3(
self.y,
self.x,
self.y
);
}
///<summary>
///Get the z, x, and y components of self as a Vector3
///</summary>
public static Vector3 zxy(this Vector3 self) {
return new Vector3(
self.z,
self.x,
self.y
);
}
///<summary>
///Set the z, x, and y components of self from a Vector3
///</summary>
public static Vector3 zxy(this Vector3 self, Vector3 v) {
self.z = v.x;
self.x = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the z, x, and y components of self
///</summary>
public static Vector3 zxy(this Vector3 self, float z, float x, float y) {
self.z = z;
self.x = x;
self.y = y;
return self;
}
///<summary>
///Set the z, x, and y components of self to a value
///</summary>
public static Vector3 zxy(this Vector3 self, float value) {
self.z = value;
self.x = value;
self.y = value;
return self;
}
///<summary>
///Get the x, y, and y components of self as a Vector3
///</summary>
public static Vector3 xyy(this Vector3 self) {
return new Vector3(
self.x,
self.y,
self.y
);
}
///<summary>
///Get the y, y, and y components of self as a Vector3
///</summary>
public static Vector3 yyy(this Vector3 self) {
return new Vector3(
self.y,
self.y,
self.y
);
}
///<summary>
///Get the z, y, and y components of self as a Vector3
///</summary>
public static Vector3 zyy(this Vector3 self) {
return new Vector3(
self.z,
self.y,
self.y
);
}
///<summary>
///Get the x, z, and y components of self as a Vector3
///</summary>
public static Vector3 xzy(this Vector3 self) {
return new Vector3(
self.x,
self.z,
self.y
);
}
///<summary>
///Set the x, z, and y components of self from a Vector3
///</summary>
public static Vector3 xzy(this Vector3 self, Vector3 v) {
self.x = v.x;
self.z = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the x, z, and y components of self
///</summary>
public static Vector3 xzy(this Vector3 self, float x, float z, float y) {
self.x = x;
self.z = z;
self.y = y;
return self;
}
///<summary>
///Set the x, z, and y components of self to a value
///</summary>
public static Vector3 xzy(this Vector3 self, float value) {
self.x = value;
self.z = value;
self.y = value;
return self;
}
///<summary>
///Get the y, z, and y components of self as a Vector3
///</summary>
public static Vector3 yzy(this Vector3 self) {
return new Vector3(
self.y,
self.z,
self.y
);
}
///<summary>
///Get the z, z, and y components of self as a Vector3
///</summary>
public static Vector3 zzy(this Vector3 self) {
return new Vector3(
self.z,
self.z,
self.y
);
}
///<summary>
///Get the x, x, and z components of self as a Vector3
///</summary>
public static Vector3 xxz(this Vector3 self) {
return new Vector3(
self.x,
self.x,
self.z
);
}
///<summary>
///Get the y, x, and z components of self as a Vector3
///</summary>
public static Vector3 yxz(this Vector3 self) {
return new Vector3(
self.y,
self.x,
self.z
);
}
///<summary>
///Set the y, x, and z components of self from a Vector3
///</summary>
public static Vector3 yxz(this Vector3 self, Vector3 v) {
self.y = v.x;
self.x = v.y;
self.z = v.z;
return self;
}
///<summary>
///Set the y, x, and z components of self
///</summary>
public static Vector3 yxz(this Vector3 self, float y, float x, float z) {
self.y = y;
self.x = x;
self.z = z;
return self;
}
///<summary>
///Set the y, x, and z components of self to a value
///</summary>
public static Vector3 yxz(this Vector3 self, float value) {
self.y = value;
self.x = value;
self.z = value;
return self;
}
///<summary>
///Get the z, x, and z components of self as a Vector3
///</summary>
public static Vector3 zxz(this Vector3 self) {
return new Vector3(
self.z,
self.x,
self.z
);
}
///<summary>
///Get the x, y, and z components of self as a Vector3
///</summary>
public static Vector3 xyz(this Vector3 self) {
return new Vector3(
self.x,
self.y,
self.z
);
}
///<summary>
///Set the x, y, and z components of self from a Vector3
///</summary>
public static Vector3 xyz(this Vector3 self, Vector3 v) {
self.x = v.x;
self.y = v.y;
self.z = v.z;
return self;
}
///<summary>
///Set the x, y, and z components of self
///</summary>
public static Vector3 xyz(this Vector3 self, float x, float y, float z) {
self.x = x;
self.y = y;
self.z = z;
return self;
}
///<summary>
///Set the x, y, and z components of self to a value
///</summary>
public static Vector3 xyz(this Vector3 self, float value) {
self.x = value;
self.y = value;
self.z = value;
return self;
}
///<summary>
///Get the y, y, and z components of self as a Vector3
///</summary>
public static Vector3 yyz(this Vector3 self) {
return new Vector3(
self.y,
self.y,
self.z
);
}
///<summary>
///Get the z, y, and z components of self as a Vector3
///</summary>
public static Vector3 zyz(this Vector3 self) {
return new Vector3(
self.z,
self.y,
self.z
);
}
///<summary>
///Get the x, z, and z components of self as a Vector3
///</summary>
public static Vector3 xzz(this Vector3 self) {
return new Vector3(
self.x,
self.z,
self.z
);
}
///<summary>
///Get the y, z, and z components of self as a Vector3
///</summary>
public static Vector3 yzz(this Vector3 self) {
return new Vector3(
self.y,
self.z,
self.z
);
}
///<summary>
///Get the z, z, and z components of self as a Vector3
///</summary>
public static Vector3 zzz(this Vector3 self) {
return new Vector3(
self.z,
self.z,
self.z
);
}
///<summary>
///Get the x, x, x, and x components of self as a Vector4
///</summary>
public static Vector4 xxxx(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.x,
self.x
);
}
///<summary>
///Get the y, x, x, and x components of self as a Vector4
///</summary>
public static Vector4 yxxx(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.x,
self.x
);
}
///<summary>
///Get the z, x, x, and x components of self as a Vector4
///</summary>
public static Vector4 zxxx(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.x,
self.x
);
}
///<summary>
///Get the x, y, x, and x components of self as a Vector4
///</summary>
public static Vector4 xyxx(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.x,
self.x
);
}
///<summary>
///Get the y, y, x, and x components of self as a Vector4
///</summary>
public static Vector4 yyxx(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.x,
self.x
);
}
///<summary>
///Get the z, y, x, and x components of self as a Vector4
///</summary>
public static Vector4 zyxx(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.x,
self.x
);
}
///<summary>
///Get the x, z, x, and x components of self as a Vector4
///</summary>
public static Vector4 xzxx(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.x,
self.x
);
}
///<summary>
///Get the y, z, x, and x components of self as a Vector4
///</summary>
public static Vector4 yzxx(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.x,
self.x
);
}
///<summary>
///Get the z, z, x, and x components of self as a Vector4
///</summary>
public static Vector4 zzxx(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.x,
self.x
);
}
///<summary>
///Get the x, x, y, and x components of self as a Vector4
///</summary>
public static Vector4 xxyx(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.y,
self.x
);
}
///<summary>
///Get the y, x, y, and x components of self as a Vector4
///</summary>
public static Vector4 yxyx(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.y,
self.x
);
}
///<summary>
///Get the z, x, y, and x components of self as a Vector4
///</summary>
public static Vector4 zxyx(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.y,
self.x
);
}
///<summary>
///Get the x, y, y, and x components of self as a Vector4
///</summary>
public static Vector4 xyyx(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.y,
self.x
);
}
///<summary>
///Get the y, y, y, and x components of self as a Vector4
///</summary>
public static Vector4 yyyx(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.y,
self.x
);
}
///<summary>
///Get the z, y, y, and x components of self as a Vector4
///</summary>
public static Vector4 zyyx(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.y,
self.x
);
}
///<summary>
///Get the x, z, y, and x components of self as a Vector4
///</summary>
public static Vector4 xzyx(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.y,
self.x
);
}
///<summary>
///Get the y, z, y, and x components of self as a Vector4
///</summary>
public static Vector4 yzyx(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.y,
self.x
);
}
///<summary>
///Get the z, z, y, and x components of self as a Vector4
///</summary>
public static Vector4 zzyx(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.y,
self.x
);
}
///<summary>
///Get the x, x, z, and x components of self as a Vector4
///</summary>
public static Vector4 xxzx(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.z,
self.x
);
}
///<summary>
///Get the y, x, z, and x components of self as a Vector4
///</summary>
public static Vector4 yxzx(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.z,
self.x
);
}
///<summary>
///Get the z, x, z, and x components of self as a Vector4
///</summary>
public static Vector4 zxzx(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.z,
self.x
);
}
///<summary>
///Get the x, y, z, and x components of self as a Vector4
///</summary>
public static Vector4 xyzx(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.z,
self.x
);
}
///<summary>
///Get the y, y, z, and x components of self as a Vector4
///</summary>
public static Vector4 yyzx(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.z,
self.x
);
}
///<summary>
///Get the z, y, z, and x components of self as a Vector4
///</summary>
public static Vector4 zyzx(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.z,
self.x
);
}
///<summary>
///Get the x, z, z, and x components of self as a Vector4
///</summary>
public static Vector4 xzzx(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.z,
self.x
);
}
///<summary>
///Get the y, z, z, and x components of self as a Vector4
///</summary>
public static Vector4 yzzx(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.z,
self.x
);
}
///<summary>
///Get the z, z, z, and x components of self as a Vector4
///</summary>
public static Vector4 zzzx(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.z,
self.x
);
}
///<summary>
///Get the x, x, x, and y components of self as a Vector4
///</summary>
public static Vector4 xxxy(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.x,
self.y
);
}
///<summary>
///Get the y, x, x, and y components of self as a Vector4
///</summary>
public static Vector4 yxxy(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.x,
self.y
);
}
///<summary>
///Get the z, x, x, and y components of self as a Vector4
///</summary>
public static Vector4 zxxy(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.x,
self.y
);
}
///<summary>
///Get the x, y, x, and y components of self as a Vector4
///</summary>
public static Vector4 xyxy(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.x,
self.y
);
}
///<summary>
///Get the y, y, x, and y components of self as a Vector4
///</summary>
public static Vector4 yyxy(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.x,
self.y
);
}
///<summary>
///Get the z, y, x, and y components of self as a Vector4
///</summary>
public static Vector4 zyxy(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.x,
self.y
);
}
///<summary>
///Get the x, z, x, and y components of self as a Vector4
///</summary>
public static Vector4 xzxy(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.x,
self.y
);
}
///<summary>
///Get the y, z, x, and y components of self as a Vector4
///</summary>
public static Vector4 yzxy(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.x,
self.y
);
}
///<summary>
///Get the z, z, x, and y components of self as a Vector4
///</summary>
public static Vector4 zzxy(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.x,
self.y
);
}
///<summary>
///Get the x, x, y, and y components of self as a Vector4
///</summary>
public static Vector4 xxyy(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.y,
self.y
);
}
///<summary>
///Get the y, x, y, and y components of self as a Vector4
///</summary>
public static Vector4 yxyy(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.y,
self.y
);
}
///<summary>
///Get the z, x, y, and y components of self as a Vector4
///</summary>
public static Vector4 zxyy(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.y,
self.y
);
}
///<summary>
///Get the x, y, y, and y components of self as a Vector4
///</summary>
public static Vector4 xyyy(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.y,
self.y
);
}
///<summary>
///Get the y, y, y, and y components of self as a Vector4
///</summary>
public static Vector4 yyyy(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.y,
self.y
);
}
///<summary>
///Get the z, y, y, and y components of self as a Vector4
///</summary>
public static Vector4 zyyy(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.y,
self.y
);
}
///<summary>
///Get the x, z, y, and y components of self as a Vector4
///</summary>
public static Vector4 xzyy(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.y,
self.y
);
}
///<summary>
///Get the y, z, y, and y components of self as a Vector4
///</summary>
public static Vector4 yzyy(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.y,
self.y
);
}
///<summary>
///Get the z, z, y, and y components of self as a Vector4
///</summary>
public static Vector4 zzyy(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.y,
self.y
);
}
///<summary>
///Get the x, x, z, and y components of self as a Vector4
///</summary>
public static Vector4 xxzy(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.z,
self.y
);
}
///<summary>
///Get the y, x, z, and y components of self as a Vector4
///</summary>
public static Vector4 yxzy(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.z,
self.y
);
}
///<summary>
///Get the z, x, z, and y components of self as a Vector4
///</summary>
public static Vector4 zxzy(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.z,
self.y
);
}
///<summary>
///Get the x, y, z, and y components of self as a Vector4
///</summary>
public static Vector4 xyzy(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.z,
self.y
);
}
///<summary>
///Get the y, y, z, and y components of self as a Vector4
///</summary>
public static Vector4 yyzy(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.z,
self.y
);
}
///<summary>
///Get the z, y, z, and y components of self as a Vector4
///</summary>
public static Vector4 zyzy(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.z,
self.y
);
}
///<summary>
///Get the x, z, z, and y components of self as a Vector4
///</summary>
public static Vector4 xzzy(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.z,
self.y
);
}
///<summary>
///Get the y, z, z, and y components of self as a Vector4
///</summary>
public static Vector4 yzzy(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.z,
self.y
);
}
///<summary>
///Get the z, z, z, and y components of self as a Vector4
///</summary>
public static Vector4 zzzy(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.z,
self.y
);
}
///<summary>
///Get the x, x, x, and z components of self as a Vector4
///</summary>
public static Vector4 xxxz(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.x,
self.z
);
}
///<summary>
///Get the y, x, x, and z components of self as a Vector4
///</summary>
public static Vector4 yxxz(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.x,
self.z
);
}
///<summary>
///Get the z, x, x, and z components of self as a Vector4
///</summary>
public static Vector4 zxxz(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.x,
self.z
);
}
///<summary>
///Get the x, y, x, and z components of self as a Vector4
///</summary>
public static Vector4 xyxz(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.x,
self.z
);
}
///<summary>
///Get the y, y, x, and z components of self as a Vector4
///</summary>
public static Vector4 yyxz(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.x,
self.z
);
}
///<summary>
///Get the z, y, x, and z components of self as a Vector4
///</summary>
public static Vector4 zyxz(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.x,
self.z
);
}
///<summary>
///Get the x, z, x, and z components of self as a Vector4
///</summary>
public static Vector4 xzxz(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.x,
self.z
);
}
///<summary>
///Get the y, z, x, and z components of self as a Vector4
///</summary>
public static Vector4 yzxz(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.x,
self.z
);
}
///<summary>
///Get the z, z, x, and z components of self as a Vector4
///</summary>
public static Vector4 zzxz(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.x,
self.z
);
}
///<summary>
///Get the x, x, y, and z components of self as a Vector4
///</summary>
public static Vector4 xxyz(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.y,
self.z
);
}
///<summary>
///Get the y, x, y, and z components of self as a Vector4
///</summary>
public static Vector4 yxyz(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.y,
self.z
);
}
///<summary>
///Get the z, x, y, and z components of self as a Vector4
///</summary>
public static Vector4 zxyz(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.y,
self.z
);
}
///<summary>
///Get the x, y, y, and z components of self as a Vector4
///</summary>
public static Vector4 xyyz(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.y,
self.z
);
}
///<summary>
///Get the y, y, y, and z components of self as a Vector4
///</summary>
public static Vector4 yyyz(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.y,
self.z
);
}
///<summary>
///Get the z, y, y, and z components of self as a Vector4
///</summary>
public static Vector4 zyyz(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.y,
self.z
);
}
///<summary>
///Get the x, z, y, and z components of self as a Vector4
///</summary>
public static Vector4 xzyz(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.y,
self.z
);
}
///<summary>
///Get the y, z, y, and z components of self as a Vector4
///</summary>
public static Vector4 yzyz(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.y,
self.z
);
}
///<summary>
///Get the z, z, y, and z components of self as a Vector4
///</summary>
public static Vector4 zzyz(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.y,
self.z
);
}
///<summary>
///Get the x, x, z, and z components of self as a Vector4
///</summary>
public static Vector4 xxzz(this Vector3 self) {
return new Vector4(
self.x,
self.x,
self.z,
self.z
);
}
///<summary>
///Get the y, x, z, and z components of self as a Vector4
///</summary>
public static Vector4 yxzz(this Vector3 self) {
return new Vector4(
self.y,
self.x,
self.z,
self.z
);
}
///<summary>
///Get the z, x, z, and z components of self as a Vector4
///</summary>
public static Vector4 zxzz(this Vector3 self) {
return new Vector4(
self.z,
self.x,
self.z,
self.z
);
}
///<summary>
///Get the x, y, z, and z components of self as a Vector4
///</summary>
public static Vector4 xyzz(this Vector3 self) {
return new Vector4(
self.x,
self.y,
self.z,
self.z
);
}
///<summary>
///Get the y, y, z, and z components of self as a Vector4
///</summary>
public static Vector4 yyzz(this Vector3 self) {
return new Vector4(
self.y,
self.y,
self.z,
self.z
);
}
///<summary>
///Get the z, y, z, and z components of self as a Vector4
///</summary>
public static Vector4 zyzz(this Vector3 self) {
return new Vector4(
self.z,
self.y,
self.z,
self.z
);
}
///<summary>
///Get the x, z, z, and z components of self as a Vector4
///</summary>
public static Vector4 xzzz(this Vector3 self) {
return new Vector4(
self.x,
self.z,
self.z,
self.z
);
}
///<summary>
///Get the y, z, z, and z components of self as a Vector4
///</summary>
public static Vector4 yzzz(this Vector3 self) {
return new Vector4(
self.y,
self.z,
self.z,
self.z
);
}
///<summary>
///Get the z, z, z, and z components of self as a Vector4
///</summary>
public static Vector4 zzzz(this Vector3 self) {
return new Vector4(
self.z,
self.z,
self.z,
self.z
);
}
#endregion
#region Vector4
///<summary>
///Get the x component of self
///</summary>
public static float x(this Vector4 self) {
return self.x;
}
///<summary>
///Set the x component of self
///</summary>
public static Vector4 x(this Vector4 self, float x) {
self.x = x;
return self;
}
///<summary>
///Get the y component of self
///</summary>
public static float y(this Vector4 self) {
return self.y;
}
///<summary>
///Set the y component of self
///</summary>
public static Vector4 y(this Vector4 self, float y) {
self.y = y;
return self;
}
///<summary>
///Get the z component of self
///</summary>
public static float z(this Vector4 self) {
return self.z;
}
///<summary>
///Set the z component of self
///</summary>
public static Vector4 z(this Vector4 self, float z) {
self.z = z;
return self;
}
///<summary>
///Get the w component of self
///</summary>
public static float w(this Vector4 self) {
return self.w;
}
///<summary>
///Set the w component of self
///</summary>
public static Vector4 w(this Vector4 self, float w) {
self.w = w;
return self;
}
///<summary>
///Get the x and x components of self as a Vector2
///</summary>
public static Vector2 xx(this Vector4 self) {
return new Vector2(
self.x,
self.x
);
}
///<summary>
///Get the y and x components of self as a Vector2
///</summary>
public static Vector2 yx(this Vector4 self) {
return new Vector2(
self.y,
self.x
);
}
///<summary>
///Set the y and x components of self from a Vector2
///</summary>
public static Vector4 yx(this Vector4 self, Vector2 v) {
self.y = v.x;
self.x = v.y;
return self;
}
///<summary>
///Set the y and x components of self
///</summary>
public static Vector4 yx(this Vector4 self, float y, float x) {
self.y = y;
self.x = x;
return self;
}
///<summary>
///Set the y and x components of self to a value
///</summary>
public static Vector4 yx(this Vector4 self, float value) {
self.y = value;
self.x = value;
return self;
}
///<summary>
///Get the z and x components of self as a Vector2
///</summary>
public static Vector2 zx(this Vector4 self) {
return new Vector2(
self.z,
self.x
);
}
///<summary>
///Set the z and x components of self from a Vector2
///</summary>
public static Vector4 zx(this Vector4 self, Vector2 v) {
self.z = v.x;
self.x = v.y;
return self;
}
///<summary>
///Set the z and x components of self
///</summary>
public static Vector4 zx(this Vector4 self, float z, float x) {
self.z = z;
self.x = x;
return self;
}
///<summary>
///Set the z and x components of self to a value
///</summary>
public static Vector4 zx(this Vector4 self, float value) {
self.z = value;
self.x = value;
return self;
}
///<summary>
///Get the w and x components of self as a Vector2
///</summary>
public static Vector2 wx(this Vector4 self) {
return new Vector2(
self.w,
self.x
);
}
///<summary>
///Set the w and x components of self from a Vector2
///</summary>
public static Vector4 wx(this Vector4 self, Vector2 v) {
self.w = v.x;
self.x = v.y;
return self;
}
///<summary>
///Set the w and x components of self
///</summary>
public static Vector4 wx(this Vector4 self, float w, float x) {
self.w = w;
self.x = x;
return self;
}
///<summary>
///Set the w and x components of self to a value
///</summary>
public static Vector4 wx(this Vector4 self, float value) {
self.w = value;
self.x = value;
return self;
}
///<summary>
///Get the x and y components of self as a Vector2
///</summary>
public static Vector2 xy(this Vector4 self) {
return new Vector2(
self.x,
self.y
);
}
///<summary>
///Set the x and y components of self from a Vector2
///</summary>
public static Vector4 xy(this Vector4 self, Vector2 v) {
self.x = v.x;
self.y = v.y;
return self;
}
///<summary>
///Set the x and y components of self
///</summary>
public static Vector4 xy(this Vector4 self, float x, float y) {
self.x = x;
self.y = y;
return self;
}
///<summary>
///Set the x and y components of self to a value
///</summary>
public static Vector4 xy(this Vector4 self, float value) {
self.x = value;
self.y = value;
return self;
}
///<summary>
///Get the y and y components of self as a Vector2
///</summary>
public static Vector2 yy(this Vector4 self) {
return new Vector2(
self.y,
self.y
);
}
///<summary>
///Get the z and y components of self as a Vector2
///</summary>
public static Vector2 zy(this Vector4 self) {
return new Vector2(
self.z,
self.y
);
}
///<summary>
///Set the z and y components of self from a Vector2
///</summary>
public static Vector4 zy(this Vector4 self, Vector2 v) {
self.z = v.x;
self.y = v.y;
return self;
}
///<summary>
///Set the z and y components of self
///</summary>
public static Vector4 zy(this Vector4 self, float z, float y) {
self.z = z;
self.y = y;
return self;
}
///<summary>
///Set the z and y components of self to a value
///</summary>
public static Vector4 zy(this Vector4 self, float value) {
self.z = value;
self.y = value;
return self;
}
///<summary>
///Get the w and y components of self as a Vector2
///</summary>
public static Vector2 wy(this Vector4 self) {
return new Vector2(
self.w,
self.y
);
}
///<summary>
///Set the w and y components of self from a Vector2
///</summary>
public static Vector4 wy(this Vector4 self, Vector2 v) {
self.w = v.x;
self.y = v.y;
return self;
}
///<summary>
///Set the w and y components of self
///</summary>
public static Vector4 wy(this Vector4 self, float w, float y) {
self.w = w;
self.y = y;
return self;
}
///<summary>
///Set the w and y components of self to a value
///</summary>
public static Vector4 wy(this Vector4 self, float value) {
self.w = value;
self.y = value;
return self;
}
///<summary>
///Get the x and z components of self as a Vector2
///</summary>
public static Vector2 xz(this Vector4 self) {
return new Vector2(
self.x,
self.z
);
}
///<summary>
///Set the x and z components of self from a Vector2
///</summary>
public static Vector4 xz(this Vector4 self, Vector2 v) {
self.x = v.x;
self.z = v.y;
return self;
}
///<summary>
///Set the x and z components of self
///</summary>
public static Vector4 xz(this Vector4 self, float x, float z) {
self.x = x;
self.z = z;
return self;
}
///<summary>
///Set the x and z components of self to a value
///</summary>
public static Vector4 xz(this Vector4 self, float value) {
self.x = value;
self.z = value;
return self;
}
///<summary>
///Get the y and z components of self as a Vector2
///</summary>
public static Vector2 yz(this Vector4 self) {
return new Vector2(
self.y,
self.z
);
}
///<summary>
///Set the y and z components of self from a Vector2
///</summary>
public static Vector4 yz(this Vector4 self, Vector2 v) {
self.y = v.x;
self.z = v.y;
return self;
}
///<summary>
///Set the y and z components of self
///</summary>
public static Vector4 yz(this Vector4 self, float y, float z) {
self.y = y;
self.z = z;
return self;
}
///<summary>
///Set the y and z components of self to a value
///</summary>
public static Vector4 yz(this Vector4 self, float value) {
self.y = value;
self.z = value;
return self;
}
///<summary>
///Get the z and z components of self as a Vector2
///</summary>
public static Vector2 zz(this Vector4 self) {
return new Vector2(
self.z,
self.z
);
}
///<summary>
///Get the w and z components of self as a Vector2
///</summary>
public static Vector2 wz(this Vector4 self) {
return new Vector2(
self.w,
self.z
);
}
///<summary>
///Set the w and z components of self from a Vector2
///</summary>
public static Vector4 wz(this Vector4 self, Vector2 v) {
self.w = v.x;
self.z = v.y;
return self;
}
///<summary>
///Set the w and z components of self
///</summary>
public static Vector4 wz(this Vector4 self, float w, float z) {
self.w = w;
self.z = z;
return self;
}
///<summary>
///Set the w and z components of self to a value
///</summary>
public static Vector4 wz(this Vector4 self, float value) {
self.w = value;
self.z = value;
return self;
}
///<summary>
///Get the x and w components of self as a Vector2
///</summary>
public static Vector2 xw(this Vector4 self) {
return new Vector2(
self.x,
self.w
);
}
///<summary>
///Set the x and w components of self from a Vector2
///</summary>
public static Vector4 xw(this Vector4 self, Vector2 v) {
self.x = v.x;
self.w = v.y;
return self;
}
///<summary>
///Set the x and w components of self
///</summary>
public static Vector4 xw(this Vector4 self, float x, float w) {
self.x = x;
self.w = w;
return self;
}
///<summary>
///Set the x and w components of self to a value
///</summary>
public static Vector4 xw(this Vector4 self, float value) {
self.x = value;
self.w = value;
return self;
}
///<summary>
///Get the y and w components of self as a Vector2
///</summary>
public static Vector2 yw(this Vector4 self) {
return new Vector2(
self.y,
self.w
);
}
///<summary>
///Set the y and w components of self from a Vector2
///</summary>
public static Vector4 yw(this Vector4 self, Vector2 v) {
self.y = v.x;
self.w = v.y;
return self;
}
///<summary>
///Set the y and w components of self
///</summary>
public static Vector4 yw(this Vector4 self, float y, float w) {
self.y = y;
self.w = w;
return self;
}
///<summary>
///Set the y and w components of self to a value
///</summary>
public static Vector4 yw(this Vector4 self, float value) {
self.y = value;
self.w = value;
return self;
}
///<summary>
///Get the z and w components of self as a Vector2
///</summary>
public static Vector2 zw(this Vector4 self) {
return new Vector2(
self.z,
self.w
);
}
///<summary>
///Set the z and w components of self from a Vector2
///</summary>
public static Vector4 zw(this Vector4 self, Vector2 v) {
self.z = v.x;
self.w = v.y;
return self;
}
///<summary>
///Set the z and w components of self
///</summary>
public static Vector4 zw(this Vector4 self, float z, float w) {
self.z = z;
self.w = w;
return self;
}
///<summary>
///Set the z and w components of self to a value
///</summary>
public static Vector4 zw(this Vector4 self, float value) {
self.z = value;
self.w = value;
return self;
}
///<summary>
///Get the w and w components of self as a Vector2
///</summary>
public static Vector2 ww(this Vector4 self) {
return new Vector2(
self.w,
self.w
);
}
///<summary>
///Get the x, x, and x components of self as a Vector3
///</summary>
public static Vector3 xxx(this Vector4 self) {
return new Vector3(
self.x,
self.x,
self.x
);
}
///<summary>
///Get the y, x, and x components of self as a Vector3
///</summary>
public static Vector3 yxx(this Vector4 self) {
return new Vector3(
self.y,
self.x,
self.x
);
}
///<summary>
///Get the z, x, and x components of self as a Vector3
///</summary>
public static Vector3 zxx(this Vector4 self) {
return new Vector3(
self.z,
self.x,
self.x
);
}
///<summary>
///Get the w, x, and x components of self as a Vector3
///</summary>
public static Vector3 wxx(this Vector4 self) {
return new Vector3(
self.w,
self.x,
self.x
);
}
///<summary>
///Get the x, y, and x components of self as a Vector3
///</summary>
public static Vector3 xyx(this Vector4 self) {
return new Vector3(
self.x,
self.y,
self.x
);
}
///<summary>
///Get the y, y, and x components of self as a Vector3
///</summary>
public static Vector3 yyx(this Vector4 self) {
return new Vector3(
self.y,
self.y,
self.x
);
}
///<summary>
///Get the z, y, and x components of self as a Vector3
///</summary>
public static Vector3 zyx(this Vector4 self) {
return new Vector3(
self.z,
self.y,
self.x
);
}
///<summary>
///Set the z, y, and x components of self from a Vector3
///</summary>
public static Vector4 zyx(this Vector4 self, Vector3 v) {
self.z = v.x;
self.y = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the z, y, and x components of self
///</summary>
public static Vector4 zyx(this Vector4 self, float z, float y, float x) {
self.z = z;
self.y = y;
self.x = x;
return self;
}
///<summary>
///Set the z, y, and x components of self to a value
///</summary>
public static Vector4 zyx(this Vector4 self, float value) {
self.z = value;
self.y = value;
self.x = value;
return self;
}
///<summary>
///Get the w, y, and x components of self as a Vector3
///</summary>
public static Vector3 wyx(this Vector4 self) {
return new Vector3(
self.w,
self.y,
self.x
);
}
///<summary>
///Set the w, y, and x components of self from a Vector3
///</summary>
public static Vector4 wyx(this Vector4 self, Vector3 v) {
self.w = v.x;
self.y = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the w, y, and x components of self
///</summary>
public static Vector4 wyx(this Vector4 self, float w, float y, float x) {
self.w = w;
self.y = y;
self.x = x;
return self;
}
///<summary>
///Set the w, y, and x components of self to a value
///</summary>
public static Vector4 wyx(this Vector4 self, float value) {
self.w = value;
self.y = value;
self.x = value;
return self;
}
///<summary>
///Get the x, z, and x components of self as a Vector3
///</summary>
public static Vector3 xzx(this Vector4 self) {
return new Vector3(
self.x,
self.z,
self.x
);
}
///<summary>
///Get the y, z, and x components of self as a Vector3
///</summary>
public static Vector3 yzx(this Vector4 self) {
return new Vector3(
self.y,
self.z,
self.x
);
}
///<summary>
///Set the y, z, and x components of self from a Vector3
///</summary>
public static Vector4 yzx(this Vector4 self, Vector3 v) {
self.y = v.x;
self.z = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the y, z, and x components of self
///</summary>
public static Vector4 yzx(this Vector4 self, float y, float z, float x) {
self.y = y;
self.z = z;
self.x = x;
return self;
}
///<summary>
///Set the y, z, and x components of self to a value
///</summary>
public static Vector4 yzx(this Vector4 self, float value) {
self.y = value;
self.z = value;
self.x = value;
return self;
}
///<summary>
///Get the z, z, and x components of self as a Vector3
///</summary>
public static Vector3 zzx(this Vector4 self) {
return new Vector3(
self.z,
self.z,
self.x
);
}
///<summary>
///Get the w, z, and x components of self as a Vector3
///</summary>
public static Vector3 wzx(this Vector4 self) {
return new Vector3(
self.w,
self.z,
self.x
);
}
///<summary>
///Set the w, z, and x components of self from a Vector3
///</summary>
public static Vector4 wzx(this Vector4 self, Vector3 v) {
self.w = v.x;
self.z = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the w, z, and x components of self
///</summary>
public static Vector4 wzx(this Vector4 self, float w, float z, float x) {
self.w = w;
self.z = z;
self.x = x;
return self;
}
///<summary>
///Set the w, z, and x components of self to a value
///</summary>
public static Vector4 wzx(this Vector4 self, float value) {
self.w = value;
self.z = value;
self.x = value;
return self;
}
///<summary>
///Get the x, w, and x components of self as a Vector3
///</summary>
public static Vector3 xwx(this Vector4 self) {
return new Vector3(
self.x,
self.w,
self.x
);
}
///<summary>
///Get the y, w, and x components of self as a Vector3
///</summary>
public static Vector3 ywx(this Vector4 self) {
return new Vector3(
self.y,
self.w,
self.x
);
}
///<summary>
///Set the y, w, and x components of self from a Vector3
///</summary>
public static Vector4 ywx(this Vector4 self, Vector3 v) {
self.y = v.x;
self.w = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the y, w, and x components of self
///</summary>
public static Vector4 ywx(this Vector4 self, float y, float w, float x) {
self.y = y;
self.w = w;
self.x = x;
return self;
}
///<summary>
///Set the y, w, and x components of self to a value
///</summary>
public static Vector4 ywx(this Vector4 self, float value) {
self.y = value;
self.w = value;
self.x = value;
return self;
}
///<summary>
///Get the z, w, and x components of self as a Vector3
///</summary>
public static Vector3 zwx(this Vector4 self) {
return new Vector3(
self.z,
self.w,
self.x
);
}
///<summary>
///Set the z, w, and x components of self from a Vector3
///</summary>
public static Vector4 zwx(this Vector4 self, Vector3 v) {
self.z = v.x;
self.w = v.y;
self.x = v.z;
return self;
}
///<summary>
///Set the z, w, and x components of self
///</summary>
public static Vector4 zwx(this Vector4 self, float z, float w, float x) {
self.z = z;
self.w = w;
self.x = x;
return self;
}
///<summary>
///Set the z, w, and x components of self to a value
///</summary>
public static Vector4 zwx(this Vector4 self, float value) {
self.z = value;
self.w = value;
self.x = value;
return self;
}
///<summary>
///Get the w, w, and x components of self as a Vector3
///</summary>
public static Vector3 wwx(this Vector4 self) {
return new Vector3(
self.w,
self.w,
self.x
);
}
///<summary>
///Get the x, x, and y components of self as a Vector3
///</summary>
public static Vector3 xxy(this Vector4 self) {
return new Vector3(
self.x,
self.x,
self.y
);
}
///<summary>
///Get the y, x, and y components of self as a Vector3
///</summary>
public static Vector3 yxy(this Vector4 self) {
return new Vector3(
self.y,
self.x,
self.y
);
}
///<summary>
///Get the z, x, and y components of self as a Vector3
///</summary>
public static Vector3 zxy(this Vector4 self) {
return new Vector3(
self.z,
self.x,
self.y
);
}
///<summary>
///Set the z, x, and y components of self from a Vector3
///</summary>
public static Vector4 zxy(this Vector4 self, Vector3 v) {
self.z = v.x;
self.x = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the z, x, and y components of self
///</summary>
public static Vector4 zxy(this Vector4 self, float z, float x, float y) {
self.z = z;
self.x = x;
self.y = y;
return self;
}
///<summary>
///Set the z, x, and y components of self to a value
///</summary>
public static Vector4 zxy(this Vector4 self, float value) {
self.z = value;
self.x = value;
self.y = value;
return self;
}
///<summary>
///Get the w, x, and y components of self as a Vector3
///</summary>
public static Vector3 wxy(this Vector4 self) {
return new Vector3(
self.w,
self.x,
self.y
);
}
///<summary>
///Set the w, x, and y components of self from a Vector3
///</summary>
public static Vector4 wxy(this Vector4 self, Vector3 v) {
self.w = v.x;
self.x = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the w, x, and y components of self
///</summary>
public static Vector4 wxy(this Vector4 self, float w, float x, float y) {
self.w = w;
self.x = x;
self.y = y;
return self;
}
///<summary>
///Set the w, x, and y components of self to a value
///</summary>
public static Vector4 wxy(this Vector4 self, float value) {
self.w = value;
self.x = value;
self.y = value;
return self;
}
///<summary>
///Get the x, y, and y components of self as a Vector3
///</summary>
public static Vector3 xyy(this Vector4 self) {
return new Vector3(
self.x,
self.y,
self.y
);
}
///<summary>
///Get the y, y, and y components of self as a Vector3
///</summary>
public static Vector3 yyy(this Vector4 self) {
return new Vector3(
self.y,
self.y,
self.y
);
}
///<summary>
///Get the z, y, and y components of self as a Vector3
///</summary>
public static Vector3 zyy(this Vector4 self) {
return new Vector3(
self.z,
self.y,
self.y
);
}
///<summary>
///Get the w, y, and y components of self as a Vector3
///</summary>
public static Vector3 wyy(this Vector4 self) {
return new Vector3(
self.w,
self.y,
self.y
);
}
///<summary>
///Get the x, z, and y components of self as a Vector3
///</summary>
public static Vector3 xzy(this Vector4 self) {
return new Vector3(
self.x,
self.z,
self.y
);
}
///<summary>
///Set the x, z, and y components of self from a Vector3
///</summary>
public static Vector4 xzy(this Vector4 self, Vector3 v) {
self.x = v.x;
self.z = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the x, z, and y components of self
///</summary>
public static Vector4 xzy(this Vector4 self, float x, float z, float y) {
self.x = x;
self.z = z;
self.y = y;
return self;
}
///<summary>
///Set the x, z, and y components of self to a value
///</summary>
public static Vector4 xzy(this Vector4 self, float value) {
self.x = value;
self.z = value;
self.y = value;
return self;
}
///<summary>
///Get the y, z, and y components of self as a Vector3
///</summary>
public static Vector3 yzy(this Vector4 self) {
return new Vector3(
self.y,
self.z,
self.y
);
}
///<summary>
///Get the z, z, and y components of self as a Vector3
///</summary>
public static Vector3 zzy(this Vector4 self) {
return new Vector3(
self.z,
self.z,
self.y
);
}
///<summary>
///Get the w, z, and y components of self as a Vector3
///</summary>
public static Vector3 wzy(this Vector4 self) {
return new Vector3(
self.w,
self.z,
self.y
);
}
///<summary>
///Set the w, z, and y components of self from a Vector3
///</summary>
public static Vector4 wzy(this Vector4 self, Vector3 v) {
self.w = v.x;
self.z = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the w, z, and y components of self
///</summary>
public static Vector4 wzy(this Vector4 self, float w, float z, float y) {
self.w = w;
self.z = z;
self.y = y;
return self;
}
///<summary>
///Set the w, z, and y components of self to a value
///</summary>
public static Vector4 wzy(this Vector4 self, float value) {
self.w = value;
self.z = value;
self.y = value;
return self;
}
///<summary>
///Get the x, w, and y components of self as a Vector3
///</summary>
public static Vector3 xwy(this Vector4 self) {
return new Vector3(
self.x,
self.w,
self.y
);
}
///<summary>
///Set the x, w, and y components of self from a Vector3
///</summary>
public static Vector4 xwy(this Vector4 self, Vector3 v) {
self.x = v.x;
self.w = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the x, w, and y components of self
///</summary>
public static Vector4 xwy(this Vector4 self, float x, float w, float y) {
self.x = x;
self.w = w;
self.y = y;
return self;
}
///<summary>
///Set the x, w, and y components of self to a value
///</summary>
public static Vector4 xwy(this Vector4 self, float value) {
self.x = value;
self.w = value;
self.y = value;
return self;
}
///<summary>
///Get the y, w, and y components of self as a Vector3
///</summary>
public static Vector3 ywy(this Vector4 self) {
return new Vector3(
self.y,
self.w,
self.y
);
}
///<summary>
///Get the z, w, and y components of self as a Vector3
///</summary>
public static Vector3 zwy(this Vector4 self) {
return new Vector3(
self.z,
self.w,
self.y
);
}
///<summary>
///Set the z, w, and y components of self from a Vector3
///</summary>
public static Vector4 zwy(this Vector4 self, Vector3 v) {
self.z = v.x;
self.w = v.y;
self.y = v.z;
return self;
}
///<summary>
///Set the z, w, and y components of self
///</summary>
public static Vector4 zwy(this Vector4 self, float z, float w, float y) {
self.z = z;
self.w = w;
self.y = y;
return self;
}
///<summary>
///Set the z, w, and y components of self to a value
///</summary>
public static Vector4 zwy(this Vector4 self, float value) {
self.z = value;
self.w = value;
self.y = value;
return self;
}
///<summary>
///Get the w, w, and y components of self as a Vector3
///</summary>
public static Vector3 wwy(this Vector4 self) {
return new Vector3(
self.w,
self.w,
self.y
);
}
///<summary>
///Get the x, x, and z components of self as a Vector3
///</summary>
public static Vector3 xxz(this Vector4 self) {
return new Vector3(
self.x,
self.x,
self.z
);
}
///<summary>
///Get the y, x, and z components of self as a Vector3
///</summary>
public static Vector3 yxz(this Vector4 self) {
return new Vector3(
self.y,
self.x,
self.z
);
}
///<summary>
///Set the y, x, and z components of self from a Vector3
///</summary>
public static Vector4 yxz(this Vector4 self, Vector3 v) {
self.y = v.x;
self.x = v.y;
self.z = v.z;
return self;
}
///<summary>
///Set the y, x, and z components of self
///</summary>
public static Vector4 yxz(this Vector4 self, float y, float x, float z) {
self.y = y;
self.x = x;
self.z = z;
return self;
}
///<summary>
///Set the y, x, and z components of self to a value
///</summary>
public static Vector4 yxz(this Vector4 self, float value) {
self.y = value;
self.x = value;
self.z = value;
return self;
}
///<summary>
///Get the z, x, and z components of self as a Vector3
///</summary>