Search Results for

    Show / Hide Table of Contents

    Struct LaserMovement

    An "extension" of the Movement struct to describe the nested movement function of a laser.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Danmokou.DMath
    Assembly: cs.temp.dll.dll
    Syntax
    public struct LaserMovement

    Constructors

    LaserMovement(LVTP, Vector2, V2RV2)

    Declaration
    public LaserMovement(LVTP path, Vector2 parentLoc, V2RV2 localLoc)
    Parameters
    Type Name Description
    LVTP path
    Vector2 parentLoc
    V2RV2 localLoc

    LaserMovement(Single, BPY)

    Simple laser variant: fires in a straight line.

    Declaration
    public LaserMovement(float base_rot_deg, BPY frame_rot)
    Parameters
    Type Name Description
    System.Single base_rot_deg
    BPY frame_rot

    Fields

    cos_rot

    Declaration
    public readonly float cos_rot
    Field Value
    Type Description
    System.Single

    flipX

    Declaration
    public float flipX
    Field Value
    Type Description
    System.Single

    flipY

    Declaration
    public float flipY
    Field Value
    Type Description
    System.Single

    isSimple

    Declaration
    public readonly bool isSimple
    Field Value
    Type Description
    System.Boolean

    rootPos

    Declaration
    public Vector2 rootPos
    Field Value
    Type Description
    Vector2

    sin_rot

    Declaration
    public readonly float sin_rot
    Field Value
    Type Description
    System.Single

    Properties

    HasMovingRotation

    Declaration
    public readonly bool HasMovingRotation { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    FlipX()

    Declaration
    public void FlipX()

    FlipY()

    Declaration
    public void FlipY()

    ResetFlip()

    Declaration
    public void ResetFlip()

    RotationDeg(ParametricInfo)

    Declaration
    public float RotationDeg(ParametricInfo bpi)
    Parameters
    Type Name Description
    ParametricInfo bpi
    Returns
    Type Description
    System.Single

    Update(in Single, ref ParametricInfo, out Vector2, in Single)

    Declaration
    public void Update(in float lt, ref ParametricInfo bpi, out Vector2 delta, in float dT)
    Parameters
    Type Name Description
    System.Single lt
    ParametricInfo bpi
    Vector2 delta
    System.Single dT
    In This Article
    Back to top Generated by DocFX