iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIMeshIndexCalculator

@interface SCIMeshIndexCalculator : SCIIndexCalculator

Helper class which helps to map 2D mesh.

  • Creates new instance of SCIMeshIndexCalculator class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUSize:(NSInteger)uSize
                                 andVSize:(NSInteger)vSize
                                     uMin:(double)uMin
                                     uMax:(double)uMax
                                     vMin:(double)vMin
                                     vMax:(double)vMax;

    Swift

    init(uSize: Int, andVSize vSize: Int, uMin: Double, uMax: Double, vMin: Double, vMax: Double)

    Parameters

    uSize

    The U size of mesh to use for mapping.

    vSize

    The V size of mesh to use for mapping.

    uMin

    The min U value used by mesh.

    uMax

    The max U value used by mesh.

    vMin

    The min V value used by mesh.

    vMax

    The max V value used by mesh.

  • Gets mesh value for specified U index.

    Declaration

    Objective-C

    - (double)getUAt:(NSInteger)index;

    Swift

    func getU(at index: Int) -> Double

    Parameters

    index

    The U index to use.

    Return Value

    The mesh value.

  • Gets mesh value for specified V index.

    Declaration

    Objective-C

    - (double)getVAt:(NSInteger)index;

    Swift

    func getV(at index: Int) -> Double

    Parameters

    index

    The V index to use.

    Return Value

    The mesh value.