Version: 13.0

    Show / Hide Table of Contents

    Struct Vector3D

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    Namespace: SMT.MastaAPI.MathUtility
    Assembly: SMT.MastaAPI.13.0.dll
    Syntax
    [Serializable]
    public readonly struct Vector3D

    Constructors

    Vector3D(Double, Double, Double)

    Declaration
    public Vector3D(double x, double y, double z)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    System.Double z

    Fields

    X

    Declaration
    public readonly double X
    Field Value
    Type Description
    System.Double

    XAxis

    Declaration
    public static readonly Vector3D XAxis
    Field Value
    Type Description
    Vector3D

    Y

    Declaration
    public readonly double Y
    Field Value
    Type Description
    System.Double

    YAxis

    Declaration
    public static readonly Vector3D YAxis
    Field Value
    Type Description
    Vector3D

    Z

    Declaration
    public readonly double Z
    Field Value
    Type Description
    System.Double

    ZAxis

    Declaration
    public static readonly Vector3D ZAxis
    Field Value
    Type Description
    Vector3D

    Zero

    Declaration
    public static readonly Vector3D Zero
    Field Value
    Type Description
    Vector3D

    Methods

    AngleBetween(Vector3D)

    Declaration
    public readonly double AngleBetween(Vector3D vecB)
    Parameters
    Type Name Description
    Vector3D vecB
    Returns
    Type Description
    System.Double

    Dot(Vector3D, Vector3D)

    Declaration
    public static double Dot(Vector3D left, Vector3D right)
    Parameters
    Type Name Description
    Vector3D left
    Vector3D right
    Returns
    Type Description
    System.Double

    Magnitude()

    Declaration
    public readonly double Magnitude()
    Returns
    Type Description
    System.Double

    RotatedAboutZAxis(Double)

    Declaration
    public readonly Vector3D RotatedAboutZAxis(double angle)
    Parameters
    Type Name Description
    System.Double angle
    Returns
    Type Description
    Vector3D

    TransformFromCoordinateSystem(Vector3D, Vector3D)

    Declaration
    public readonly Vector3D TransformFromCoordinateSystem(Vector3D xAxis, Vector3D yAxis)
    Parameters
    Type Name Description
    Vector3D xAxis
    Vector3D yAxis
    Returns
    Type Description
    Vector3D

    TransformFromCoordinateSystem(Vector3D, Vector3D, Vector3D)

    Declaration
    public readonly Vector3D TransformFromCoordinateSystem(Vector3D xAxis, Vector3D yAxis, Vector3D translation)
    Parameters
    Type Name Description
    Vector3D xAxis
    Vector3D yAxis
    Vector3D translation
    Returns
    Type Description
    Vector3D

    TransformToCoordinateSystem(Vector3D, Vector3D)

    Declaration
    public readonly Vector3D TransformToCoordinateSystem(Vector3D xAxis, Vector3D yAxis)
    Parameters
    Type Name Description
    Vector3D xAxis
    Vector3D yAxis
    Returns
    Type Description
    Vector3D

    TransformToCoordinateSystem(Vector3D, Vector3D, Vector3D)

    Declaration
    public readonly Vector3D TransformToCoordinateSystem(Vector3D xAxis, Vector3D yAxis, Vector3D translation)
    Parameters
    Type Name Description
    Vector3D xAxis
    Vector3D yAxis
    Vector3D translation
    Returns
    Type Description
    Vector3D

    Operators

    Addition(Vector3D, Vector3D)

    Declaration
    [Pure]
    public static Vector3D operator +(Vector3D a, Vector3D b)
    Parameters
    Type Name Description
    Vector3D a
    Vector3D b
    Returns
    Type Description
    Vector3D

    Subtraction(Vector3D, Vector3D)

    Declaration
    [Pure]
    public static Vector3D operator -(Vector3D a, Vector3D b)
    Parameters
    Type Name Description
    Vector3D a
    Vector3D b
    Returns
    Type Description
    Vector3D
    Back to top