Skip to content

Function: isValidSliceIndex()

ts
function isValidSliceIndex(
   space, 
   sliceIndex, 
   viewAxis): boolean;

Defined in: src/geometry/SliceHelpers.ts:53

Validate a slice index for a given view and space

Parameters

space

NeuroSpace

The NeuroSpace

sliceIndex

number

The slice index to validate

viewAxis

AxisSet3D

The viewing orientation

Returns

boolean

True if the slice index is valid

Released under the MIT License.