public interface ThreeDimensionalDoubleAccess extends ThreeDimensionalDoubleReadAccess, ThreeDimensionalAccess<java.lang.Double>
Modifier and Type | Field and Description |
---|---|
static ThreeDimensionalDoubleAccess |
EMPTY
Empty 3dimensional double access.
|
Modifier and Type | Method and Description |
---|---|
default void |
changeAllValues(java.util.function.DoubleUnaryOperator operator)
Change all values by applying an operator.
|
default void |
changeValueAt(java.util.function.DoubleUnaryOperator operator,
int ix,
int iy,
int iz)
Change the value at the given indexes.
|
default void |
fillValuesByIndex(IntToDoubleFunction3 setter)
Set all values depending on their indexes.
|
default void |
setElementAt(java.lang.Double element,
int ix,
int iy,
int iz)
Set the element at the given indexes.
|
void |
setValueAt(double value,
int ix,
int iy,
int iz)
Set the value at the given indexes.
|
default TwoDimensionalDoubleAccess |
subAtX(int fixX)
Get a 2-dimensional view of the plane at the given X index.
|
default TwoDimensionalDoubleAccess |
subAtY(int fixY)
Get a 2-dimensional view of the plane at the given Y index.
|
default TwoDimensionalDoubleAccess |
subAtZ(int fixZ)
Get a 2-dimensional view of the plane at the given Z index.
|
getElementAt, getValueAt, singleton
changeAll, changeAll, empty, fillByIndex, setElement
getElement, getNumDimensions, getNumElements, getSize, getSizes, sizeX, sizeY, sizeZ, view, visitAll, visitAll
change, setAll, setFrom, setFrom, setFrom
empty, linearized
static final ThreeDimensionalDoubleAccess EMPTY
void setValueAt(double value, int ix, int iy, int iz)
value
- value to setix
- X indexiy
- Y indexiz
- Z indexdefault void changeValueAt(@NotNull java.util.function.DoubleUnaryOperator operator, int ix, int iy, int iz)
operator
- operator to apply to the valueix
- X indexiy
- Y indexiz
- Z indexdefault void changeAllValues(@NotNull java.util.function.DoubleUnaryOperator operator)
operator
- operator to applydefault void fillValuesByIndex(@NotNull IntToDoubleFunction3 setter)
setter
- setter which provides the value to set for each index combinationdefault void setElementAt(@NotNull java.lang.Double element, int ix, int iy, int iz)
ThreeDimensionalAccess
setElementAt
in interface ThreeDimensionalAccess<java.lang.Double>
element
- element to setix
- index in X direction from 0
(included) to ThreeDimensionalReadAccess.sizeX()
(excluded)iy
- index in Y direction from 0
(included) to ThreeDimensionalReadAccess.sizeY()
(excluded)iz
- index in Y direction from 0
(included) to ThreeDimensionalReadAccess.sizeZ()
(excluded)@NotNull default TwoDimensionalDoubleAccess subAtX(int fixX)
ThreeDimensionalReadAccess
subAtX
in interface ThreeDimensionalAccess<java.lang.Double>
subAtX
in interface ThreeDimensionalDoubleReadAccess
subAtX
in interface ThreeDimensionalReadAccess<java.lang.Double>
fixX
- fix X indexfixX
@NotNull default TwoDimensionalDoubleAccess subAtY(int fixY)
ThreeDimensionalReadAccess
subAtY
in interface ThreeDimensionalAccess<java.lang.Double>
subAtY
in interface ThreeDimensionalDoubleReadAccess
subAtY
in interface ThreeDimensionalReadAccess<java.lang.Double>
fixY
- fix Y indexfixY
@NotNull default TwoDimensionalDoubleAccess subAtZ(int fixZ)
ThreeDimensionalReadAccess
subAtZ
in interface ThreeDimensionalAccess<java.lang.Double>
subAtZ
in interface ThreeDimensionalDoubleReadAccess
subAtZ
in interface ThreeDimensionalReadAccess<java.lang.Double>
fixZ
- fix Z indexfixZ