Class Vector3Ex
Inheritance
System.Object
Vector3Ex
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 Vector3Ex
Methods
Abs(Vector3)
new Vector3(Mathf.Abs(self.x), Mathf.Abs(self.y), Mathf.Abs(self.z))
Declaration
public static Vector3 Abs(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Ave(Vector3)
Declaration
public static float Ave(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
System.Single |
|
AxisSymmetric(Vector3, Vector3)
ベクトルselfをaxisに対して線対称にしたベクトルを返す
Declaration
public static Vector3 AxisSymmetric(this Vector3 self, Vector3 axis)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Vector3 |
axis |
|
Returns
Between(Vector3, Vector3, Vector3)
selfがmin ~ maxのaabbの範囲内にあるかどうか
Declaration
public static bool Between(this Vector3 self, Vector3 min, Vector3 max)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Vector3 |
min |
|
Vector3 |
max |
|
Returns
Type |
Description |
System.Boolean |
|
CeilToInt(Vector3)
各成分に対してCeilToIntを適用してVector3Int型で返す
Declaration
public static Vector3Int CeilToInt(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
Vector3Int |
|
Centroid(IEnumerable<Vector3>)
Declaration
public static Vector3 Centroid(IEnumerable<Vector3> points)
Parameters
Type |
Name |
Description |
IEnumerable<Vector3> |
points |
|
Returns
Clamp(Vector3, Single, Single)
Declaration
public static Vector3 Clamp(this Vector3 x, float min, float max)
Parameters
Type |
Name |
Description |
Vector3 |
x |
|
System.Single |
min |
|
System.Single |
max |
|
Returns
Clamp(Vector3, Vector3, Vector3)
Declaration
public static Vector3 Clamp(Vector3 x, Vector3 min, Vector3 max)
Parameters
Type |
Name |
Description |
Vector3 |
x |
|
Vector3 |
min |
|
Vector3 |
max |
|
Returns
FloorToInt(Vector3)
各成分に対してFloorToIntを適用してVector3Int型で返す
Declaration
public static Vector3Int FloorToInt(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
Vector3Int |
|
Max(Vector3)
Mathf.Max(self.z, Mathf.Max(self.x, self.y))
Declaration
public static float Max(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
System.Single |
|
Min(Vector3)
Mathf.Min(self.z, Mathf.Min(self.x, self.y))
Declaration
public static float Min(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
System.Single |
|
PutX(Vector3, Single)
Declaration
public static Vector3 PutX(this Vector3 self, float x)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
x |
|
Returns
PutXy(Vector3, Single, Single)
Declaration
public static Vector3 PutXy(this Vector3 self, float x, float y)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
x |
|
System.Single |
y |
|
Returns
PutXy(Vector3, Vector2)
Declaration
public static Vector3 PutXy(this Vector3 self, Vector2 xy)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Vector2 |
xy |
|
Returns
PutXz(Vector3, Single, Single)
Declaration
public static Vector3 PutXz(this Vector3 self, float x, float z)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
x |
|
System.Single |
z |
|
Returns
PutY(Vector3, Single)
Declaration
public static Vector3 PutY(this Vector3 self, float y)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
y |
|
Returns
PutYz(Vector3, Single, Single)
Declaration
public static Vector3 PutYz(this Vector3 self, float y, float z)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
y |
|
System.Single |
z |
|
Returns
PutZ(Vector3, Single)
Declaration
public static Vector3 PutZ(this Vector3 self, float z)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
z |
|
Returns
RevScale(Vector3, Vector3)
Declaration
public static Vector3 RevScale(Vector3 a, Vector3 b)
Parameters
Type |
Name |
Description |
Vector3 |
a |
|
Vector3 |
b |
|
Returns
RevScaled(Vector3, Vector3)
new Vector3(self.x / div.x, self.y / div.y, self.z / div.z)
Declaration
public static Vector3 RevScaled(this Vector3 self, Vector3 div)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Vector3 |
div |
|
Returns
Scaled(Vector3, Vector3)
new Vector3(self.x * mul.x, self.y * mul.y, self.z * mul.z)
Declaration
public static Vector3 Scaled(this Vector3 self, Vector3 mul)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Vector3 |
mul |
|
Returns
Sum(Vector3)
Declaration
public static float Sum(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
System.Single |
|
ToVector3Int(Vector3)
Declaration
public static Vector3Int ToVector3Int(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Type |
Description |
Vector3Int |
|
Xy(Vector3)
new Vector2(self.x, self.y);
Declaration
public static Vector2 Xy(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Xyza(Vector3, Single)
return new Vector4(self.x, self.y, self.z, a);)
Declaration
public static Vector4 Xyza(this Vector3 self, float a)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
System.Single |
a |
|
Returns
Xz(Vector3)
new Vector2(self.x, self.z);
Declaration
public static Vector2 Xz(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns
Yz(Vector3)
new Vector2(self.x, self.z);
Declaration
public static Vector2 Yz(this Vector3 self)
Parameters
Type |
Name |
Description |
Vector3 |
self |
|
Returns