Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    VectorExtensions Class

    Namespace: Stride.Core.Mathematics
    Assembly: Stride.Core.Mathematics.dll

    Extensions methods of the vector classes.

    System.Object → VectorExtensions
    Derived from VectorExtensions:

    public static class VectorExtensions
    Name Description
    Methods
    XY(Vector3)

    Return the X/Y components of the vector.

    XY(Vector4)

    Return the X/Y components of the vector.

    XYZ(Vector4)

    Return the X/Y/Z components of the vector.

    XZ(Vector3)

    Return the X/Z components of the vector.

    YX(Vector2)

    Return the Y/X components of the vector in the inverse order.

    YZ(Vector3)

    Return the Y/Z components of the vector.

    | Improve this Doc View Source

    Methods


    XY(Vector3)

    Return the X/Y components of the vector.

    public static Vector2 XY(this Vector3 vector)
    Parameters
    Type Name Description
    Vector3 vector

    the input vector

    Returns
    Type Description
    Vector2

    XY(Vector4)

    Return the X/Y components of the vector.

    public static Vector2 XY(this Vector4 vector)
    Parameters
    Type Name Description
    Vector4 vector

    the input vector

    Returns
    Type Description
    Vector2

    XYZ(Vector4)

    Return the X/Y/Z components of the vector.

    public static Vector3 XYZ(this Vector4 vector)
    Parameters
    Type Name Description
    Vector4 vector

    the input vector

    Returns
    Type Description
    Vector3

    XZ(Vector3)

    Return the X/Z components of the vector.

    public static Vector2 XZ(this Vector3 vector)
    Parameters
    Type Name Description
    Vector3 vector

    the input vector

    Returns
    Type Description
    Vector2

    YX(Vector2)

    Return the Y/X components of the vector in the inverse order.

    public static Vector2 YX(this Vector2 vector)
    Parameters
    Type Name Description
    Vector2 vector

    the input vector

    Returns
    Type Description
    Vector2

    YZ(Vector3)

    Return the Y/Z components of the vector.

    public static Vector2 YZ(this Vector3 vector)
    Parameters
    Type Name Description
    Vector3 vector

    the input vector

    Returns
    Type Description
    Vector2

    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation