Search Results for

    Show / Hide Table of Contents

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

    Ave(Vector4)

    (self.x + self.y) / 2

    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)

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

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

    Clamp(Vector4, Vector4, Vector4)

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

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

    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)

    wを差し替えたVector4返す。非破壊

    Declaration
    public static Vector4 PutW(this Vector4 self, float w)
    Parameters
    Type Name Description
    Vector4 self
    System.Single w
    Returns
    Type Description
    Vector4

    PutX(Vector4, Single)

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

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

    PutXy(Vector4, Single, Single)

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

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

    PutXy(Vector4, Vector2)

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

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

    PutXz(Vector4, Single, Single)

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

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

    PutY(Vector4, Single)

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

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

    PutYz(Vector4, Single, Single)

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

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

    PutZ(Vector4, Single)

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

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

    RevScale(Vector4, Vector4)

    Vector4.Scaleの逆数版 a / b

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

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

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

    Sum(Vector4)

    self.x + self.y

    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
    Type Description
    Vector3
    In This Article
    Back to top PLATEAU SDK for Unity