NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Struct ArrayAlias<T>

    Utility class for porting C++ pointer arithmetic code that uses pointer offsets. Provides array access with a base index offset, emulating C++ pointer behavior.

    Namespace: NWH.Aerodynamics.Airfoils
    Assembly: NWH.Aerodynamics.dll
    Syntax
    public struct ArrayAlias<T>
    Type Parameters
    Name Description
    T

    The type of elements in the array.

    Remarks

    Used for porting C++ code patterns like: T* ptr = &array[i]; ptr[k] = value; where ptr[k] accesses array[i+k].

    Constructors

    | Edit this page View Source

    ArrayAlias(T[], int)

    Declaration
    public ArrayAlias(T[] source, int i)
    Parameters
    Type Name Description
    T[] source
    int i

    Fields

    | Edit this page View Source

    Index

    Declaration
    public int Index
    Field Value
    Type Description
    int
    | Edit this page View Source

    Source

    Declaration
    public T[] Source
    Field Value
    Type Description
    T[]

    Properties

    | Edit this page View Source

    this[int]

    Declaration
    public T this[int i] { get; set; }
    Parameters
    Type Name Description
    int i
    Property Value
    Type Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics