Skip to content
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
  • [new IJKIndex(options, j, k)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.scene-3.reservoir-2.ijkindex.ijkindex.md#new ijkindex(options, j, k))
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<br>

Parameters

Name Type Description
optionsPartial<Coordinates&gt;The input for IJK coordinates as an object

Returns

IJKIndex

this


fromVector3

▸ fromVector3(vector3): IJKIndex

Set the ijk coordinate from the given Vector3(i, j, k)

Parameters

Name Type Description
vector3Vector3The Vector3 containing the ijk values

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<br>

Returns

Coordinates


toVector3

▸ toVector3(): Vector3

Get a Vector3 representation of the IJK

Returns

Vector3

array


getClassName

▸ Static getClassName(): string

Returns

string