Class Vector2IntEx
Inheritance
System.Object
Vector2IntEx
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 Vector2IntEx
Methods
Abs(Vector2Int)
new Vector2Int(Mathf.Abs(self.x), Mathf.Abs(self.y))
Declaration
public static Vector2Int Abs(this Vector2Int self)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Returns
Type |
Description |
Vector2Int |
|
Clamp(Vector2Int, Int32, Int32)
Declaration
public static Vector2Int Clamp(this Vector2Int x, int min, int max)
Parameters
Type |
Name |
Description |
Vector2Int |
x |
|
System.Int32 |
min |
|
System.Int32 |
max |
|
Returns
Type |
Description |
Vector2Int |
|
Clamp(Vector2Int, Vector2Int, Vector2Int)
Declaration
public static Vector2Int Clamp(this Vector2Int x, Vector2Int min, Vector2Int max)
Parameters
Type |
Name |
Description |
Vector2Int |
x |
|
Vector2Int |
min |
|
Vector2Int |
max |
|
Returns
Type |
Description |
Vector2Int |
|
Max(Vector2Int)
Mathf.Min(self.x, self.y)
Declaration
public static int Max(this Vector2Int self)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Returns
Type |
Description |
System.Int32 |
|
Min(Vector2Int)
Mathf.Min(self.x, self.y)
Declaration
public static int Min(this Vector2Int self)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Returns
Type |
Description |
System.Int32 |
|
PutX(Vector2Int, Int32)
Declaration
public static Vector2Int PutX(this Vector2Int self, int x)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
System.Int32 |
x |
|
Returns
Type |
Description |
Vector2Int |
|
PutY(Vector2Int, Int32)
Declaration
public static Vector2Int PutY(this Vector2Int self, int y)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
System.Int32 |
y |
|
Returns
Type |
Description |
Vector2Int |
|
RevScale(Vector2Int, Vector2Int)
Vector2Int.Scaleの逆数版 a / b
Declaration
public static Vector2Int RevScale(Vector2Int a, Vector2Int b)
Parameters
Type |
Name |
Description |
Vector2Int |
a |
|
Vector2Int |
b |
|
Returns
Type |
Description |
Vector2Int |
|
RevScaled(Vector2Int, Vector2Int)
new Vector2IntInt(self.x / div.x, self.y / div.y)
Declaration
public static Vector2Int RevScaled(this Vector2Int self, Vector2Int div)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Vector2Int |
div |
|
Returns
Type |
Description |
Vector2Int |
|
Scaled(Vector2Int, Vector2Int)
new Vector2IntInt(self.x * mul.x, self.y * mul.y)
Declaration
public static Vector2Int Scaled(this Vector2Int self, Vector2Int mul)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Vector2Int |
mul |
|
Returns
Type |
Description |
Vector2Int |
|
Sum(Vector2Int)
Declaration
public static int Sum(this Vector2Int self)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Returns
Type |
Description |
System.Int32 |
|
Tan(Vector2Int)
Declaration
public static int Tan(this Vector2Int self)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Returns
Type |
Description |
System.Int32 |
|
ToVector2(Vector2Int)
Declaration
public static Vector2 ToVector2(this Vector2Int self)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
Returns
Xay(Vector2Int, Int32)
yを指定してVector3にする
return new Vector3(self.x, y, self.y);
Declaration
public static Vector3 Xay(this Vector2Int self, int y = 0)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
System.Int32 |
y |
|
Returns
Xya(Vector2Int, Int32)
zを指定してVector3にする
return new Vector3(self.x, self.y, z);
Declaration
public static Vector3 Xya(this Vector2Int self, int z = 0)
Parameters
Type |
Name |
Description |
Vector2Int |
self |
|
System.Int32 |
z |
|
Returns