Search Results for

    Show / Hide Table of Contents

    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()
    Namespace: PLATEAU.Util
    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
    Type Description
    Vector3

    Ave(Vector3)

    (self.x + self.y) / 2

    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
    Type Description
    Vector3

    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
    Type Description
    Vector3

    Clamp(Vector3, Single, Single)

    各要素をmin, maxでクランプ

    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
    Type Description
    Vector3

    Clamp(Vector3, Vector3, Vector3)

    各要素をmin,maxの各要素でクランプ

    Declaration
    public static Vector3 Clamp(Vector3 x, Vector3 min, Vector3 max)
    Parameters
    Type Name Description
    Vector3 x
    Vector3 min
    Vector3 max
    Returns
    Type Description
    Vector3

    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)

    xを差し替えたVector3返す。非破壊

    Declaration
    public static Vector3 PutX(this Vector3 self, float x)
    Parameters
    Type Name Description
    Vector3 self
    System.Single x
    Returns
    Type Description
    Vector3

    PutXy(Vector3, Single, Single)

    xyを差し替えたVector3返す。非破壊

    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
    Type Description
    Vector3

    PutXy(Vector3, Vector2)

    xzを差し替えたVector3返す。非破壊

    Declaration
    public static Vector3 PutXy(this Vector3 self, Vector2 xy)
    Parameters
    Type Name Description
    Vector3 self
    Vector2 xy
    Returns
    Type Description
    Vector3

    PutXz(Vector3, Single, Single)

    xzを差し替えたVector3返す。非破壊

    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
    Type Description
    Vector3

    PutY(Vector3, Single)

    yを差し替えたVector3返す。非破壊

    Declaration
    public static Vector3 PutY(this Vector3 self, float y)
    Parameters
    Type Name Description
    Vector3 self
    System.Single y
    Returns
    Type Description
    Vector3

    PutYz(Vector3, Single, Single)

    yzを差し替えたVector3返す。非破壊

    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
    Type Description
    Vector3

    PutZ(Vector3, Single)

    zを差し替えたVector3返す。非破壊

    Declaration
    public static Vector3 PutZ(this Vector3 self, float z)
    Parameters
    Type Name Description
    Vector3 self
    System.Single z
    Returns
    Type Description
    Vector3

    RevScale(Vector3, Vector3)

    Vector3.Scaleの逆数版 a / b

    Declaration
    public static Vector3 RevScale(Vector3 a, Vector3 b)
    Parameters
    Type Name Description
    Vector3 a
    Vector3 b
    Returns
    Type Description
    Vector3

    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
    Type Description
    Vector3

    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
    Type Description
    Vector3

    Sum(Vector3)

    self.x + self.y

    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
    Type Description
    Vector2

    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
    Type Description
    Vector4

    Xz(Vector3)

    new Vector2(self.x, self.z);

    Declaration
    public static Vector2 Xz(this Vector3 self)
    Parameters
    Type Name Description
    Vector3 self
    Returns
    Type Description
    Vector2

    Yz(Vector3)

    new Vector2(self.x, self.z);

    Declaration
    public static Vector2 Yz(this Vector3 self)
    Parameters
    Type Name Description
    Vector3 self
    Returns
    Type Description
    Vector2
    In This Article
    Back to top PLATEAU SDK for Unity