Search Results for

    Show / Hide Table of Contents

    Class ExMRV2

    Functions that return V2RV2.

    Inheritance
    System.Object
    ExMRV2
    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: Danmokou.DMath.Functions
    Assembly: cs.temp.dll.dll
    Syntax
    public static class ExMRV2

    Methods

    Angle(tfloat)

    Derive a V2RV2 from a rotational angle component only. Everything else is zero.

    Declaration
    public static trv2 Angle(tfloat a)
    Parameters
    Type Name Description
    tfloat a
    Returns
    Type Description
    trv2

    AnglePhi(tfloat)

    = Angle(360h / RPT)

    Declaration
    public static trv2 AnglePhi(tfloat rpt)
    Parameters
    Type Name Description
    tfloat rpt
    Returns
    Type Description
    trv2

    NRot(tfloat, tfloat, tfloat)

    Derive a V2RV2 from three floats. RX and RY are set to zero.

    Declaration
    public static trv2 NRot(tfloat nx, tfloat ny, tfloat angle)
    Parameters
    Type Name Description
    tfloat nx

    Nonrotational x

    tfloat ny

    Nonrotational y

    tfloat angle

    Rotational angle (degrees)

    Returns
    Type Description
    trv2

    NX(tfloat)

    Derive a V2RV2 from a nonrotational X component only. Everything else is zero.

    Declaration
    public static trv2 NX(tfloat nx)
    Parameters
    Type Name Description
    tfloat nx
    Returns
    Type Description
    trv2

    NY(tfloat)

    Derive a V2RV2 from a nonrotational Y component only. Everything else is zero.

    Declaration
    public static trv2 NY(tfloat ny)
    Parameters
    Type Name Description
    tfloat ny
    Returns
    Type Description
    trv2

    Rot(tfloat, tfloat, tfloat)

    Derive a V2RV2 from three floats. NX and NY are set to zero.

    Declaration
    public static trv2 Rot(tfloat rx, tfloat ry, tfloat angle)
    Parameters
    Type Name Description
    tfloat rx

    Rotational x

    tfloat ry

    Rotational y

    tfloat angle

    Rotational angle (degrees)

    Returns
    Type Description
    trv2

    RX(tfloat)

    Derive a V2RV2 from a rotational X component only. Everything else is zero.

    Declaration
    public static trv2 RX(tfloat rx)
    Parameters
    Type Name Description
    tfloat rx
    Returns
    Type Description
    trv2

    RXY(tfloat, tfloat)

    Derive a V2RV2 from a rotational X and Y. Everything else is set to zero.

    Declaration
    public static trv2 RXY(tfloat rx, tfloat ry)
    Parameters
    Type Name Description
    tfloat rx

    Rotational x

    tfloat ry

    Rotational y

    Returns
    Type Description
    trv2

    RY(tfloat)

    Derive a V2RV2 from a rotational Y component only. Everything else is zero.

    Declaration
    public static trv2 RY(tfloat ry)
    Parameters
    Type Name Description
    tfloat ry
    Returns
    Type Description
    trv2

    V2V2F(tv2, tv2, tfloat)

    Derive a V2RV2 from two vectors and a float.

    Declaration
    public static trv2 V2V2F(tv2 nrot, tv2 rot, tfloat angle)
    Parameters
    Type Name Description
    tv2 nrot

    Nonrotational x,y

    tv2 rot

    Rotational x,y

    tfloat angle

    Rotational angle (degrees)

    Returns
    Type Description
    trv2

    V2V3(tv2, tv3)

    Derive a V2RV2 from a nonrotational vector and a rotational vector3.

    Declaration
    public static trv2 V2V3(tv2 nrot, tv3 rot)
    Parameters
    Type Name Description
    tv2 nrot

    Nonrotational component

    tv3 rot

    Rotational component (x,y,angle)

    Returns
    Type Description
    trv2

    Zero()

    Return the zero V2RV2.

    Declaration
    public static trv2 Zero()
    Returns
    Type Description
    trv2
    In This Article
    Back to top Generated by DocFX