Last updated

API / geotoolkit3d / scene / reservoir / IJKIndex / IJKIndex

Class: IJKIndex

reservoir.IJKIndex.IJKIndex

A Reservoir IJK index

This object represents a cell index

Table of contents

Constructors
Methods

Contents

Constructors

new IJKIndex(options, j, k)

new IJKIndex(options, j?, k?)

Parameters

Name Type
optionsOptions
Optional jnumber
Optional knumber
Methods

add

add(ijk): IJKIndex

Add ijk index to this index

Parameters

Name Type Description
ijkIJKIndexadds ijk to this index

Returns

IJKIndex

this


fromArray

fromArray(array): IJKIndex

Set the ijk coordinate from the given array ([i, j, k])

Parameters

Name Type Description
arraynumber[]The array containing the ijk values

Returns

IJKIndex

this


fromJson

fromJson(options): IJKIndex

Set the value of the object

Parameters

Name Type Description
optionsPartial<Coordinates>The input for IJK coordinates as an object

Returns

IJKIndex

this


getClassName

getClassName(): string

Returns

string


getI

getI(): number

Return I index

Returns

number

I


getJ

getJ(): number

Return J index

Returns

number

J


getK

getK(): number

Return K index

Returns

number

K


getOptions

getOptions(): Coordinates

Get the ijk coordinates. (see IJKIndex.setOptions for more info)

Returns

Coordinates

options


set

set(i, j, k): IJKIndex

Set the the ijk values

Parameters

Name Type Description
inumberThe I coordinate
jnumberThe J coordinate
knumberThe K coordinate

Returns

IJKIndex

this


setOptions

setOptions(options, j?, k?): IJKIndex

Set the ijk coordinates.

Parameters

Name Type Description
optionsOptionsThe input for IJK coordinates as an object or an array or the I coordinate
Optional jnumberJ coordinate
Optional knumberK coordinate

Returns

IJKIndex

this


sub

sub(ijk): IJKIndex

Subtract ijk index to this index

Parameters

Name Type Description
ijkIJKIndexsubtracts ijk to this index

Returns

IJKIndex

this


toArray

toArray(): number[]

Get an array representation of the IJK

Returns

number[]

array


toJson

toJson(): Coordinates

Get a json representation of the object

Returns

Coordinates


getClassName

Static getClassName(): string

Returns

string