Class Vector4Ex
Inheritance
System.Object
Vector4Ex
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class Vector4Ex
Methods
Abs(Vector4)
new Vector4(Mathf.Abs(self.x), Mathf.Abs(self.y), Mathf.Abs(self.z), Mathf.Abs(self.w))
Declaration
public static Vector4 Abs(this Vector4 self)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Returns
Ave(Vector4)
Declaration
public static float Ave(this Vector4 self)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Returns
Type |
Description |
System.Single |
|
Between(Vector4, Vector4, Vector4)
selfがmin ~ maxのaabbの範囲内にあるかどうか
Declaration
public static bool Between(this Vector4 self, Vector4 min, Vector4 max)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Vector4 |
min |
|
Vector4 |
max |
|
Returns
Type |
Description |
System.Boolean |
|
Clamp(Vector4, Single, Single)
Declaration
public static Vector4 Clamp(this Vector4 x, float min, float max)
Parameters
Type |
Name |
Description |
Vector4 |
x |
|
System.Single |
min |
|
System.Single |
max |
|
Returns
Clamp(Vector4, Vector4, Vector4)
Declaration
public static Vector4 Clamp(Vector4 x, Vector4 min, Vector4 max)
Parameters
Type |
Name |
Description |
Vector4 |
x |
|
Vector4 |
min |
|
Vector4 |
max |
|
Returns
Max(Vector4)
Mathf.Max(self.z, Mathf.Max(self.x, self.y))
Declaration
public static float Max(this Vector4 self)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Returns
Type |
Description |
System.Single |
|
Min(Vector4)
Mathf.Min(self.z, Mathf.Min(self.x, self.y))
Declaration
public static float Min(this Vector4 self)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Returns
Type |
Description |
System.Single |
|
PutW(Vector4, Single)
Declaration
public static Vector4 PutW(this Vector4 self, float w)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
w |
|
Returns
PutX(Vector4, Single)
Declaration
public static Vector4 PutX(this Vector4 self, float x)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
x |
|
Returns
PutXy(Vector4, Single, Single)
Declaration
public static Vector4 PutXy(this Vector4 self, float x, float y)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
x |
|
System.Single |
y |
|
Returns
PutXy(Vector4, Vector2)
Declaration
public static Vector4 PutXy(this Vector4 self, Vector2 xy)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Vector2 |
xy |
|
Returns
PutXz(Vector4, Single, Single)
Declaration
public static Vector4 PutXz(this Vector4 self, float x, float z)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
x |
|
System.Single |
z |
|
Returns
PutY(Vector4, Single)
Declaration
public static Vector4 PutY(this Vector4 self, float y)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
y |
|
Returns
PutYz(Vector4, Single, Single)
Declaration
public static Vector4 PutYz(this Vector4 self, float y, float z)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
y |
|
System.Single |
z |
|
Returns
PutZ(Vector4, Single)
Declaration
public static Vector4 PutZ(this Vector4 self, float z)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
System.Single |
z |
|
Returns
RevScale(Vector4, Vector4)
Declaration
public static Vector4 RevScale(Vector4 a, Vector4 b)
Parameters
Type |
Name |
Description |
Vector4 |
a |
|
Vector4 |
b |
|
Returns
RevScaled(Vector4, Vector4)
new Vector4(self.x / div.x, self.y / div.y, self.z / div.z, self.w / div.w)
Declaration
public static Vector4 RevScaled(this Vector4 self, Vector4 div)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Vector4 |
div |
|
Returns
Scaled(Vector4, Vector4)
new Vector4(self.x * mul.x, self.y * mul.y, self.z * mul.z, self.w * mul.w)
Declaration
public static Vector4 Scaled(this Vector4 self, Vector4 mul)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Vector4 |
mul |
|
Returns
Sum(Vector4)
Declaration
public static float Sum(this Vector4 self)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Returns
Type |
Description |
System.Single |
|
Xyz(Vector4)
new Vector3(self.x, self.y, self.z);
Declaration
public static Vector3 Xyz(this Vector4 self)
Parameters
Type |
Name |
Description |
Vector4 |
self |
|
Returns