Package net.algart.matrices.stitching
Class DefaultFrame<P extends FramePosition>
java.lang.Object
net.algart.matrices.stitching.DefaultFrame<P>
- All Implemented Interfaces:
Frame<P>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultFrame(Matrix<? extends PArray> matrix, P position) -
Method Summary
Modifier and TypeMethodDescriptionintdimCount()The number of space dimensions.booleanvoidCallsMatrix.freeResources(null)for the matrix, contained in this frame.inthashCode()Returns the hash code of this object.matrix()The matrix, contained in this frame.position()The position in n-dimensional space, where the givenmatrixis placed.toString()static <P extends FramePosition>
DefaultFrame<P>
-
Constructor Details
-
DefaultFrame
-
-
Method Details
-
valueOf
public static <P extends FramePosition> DefaultFrame<P> valueOf(Matrix<? extends PArray> matrix, P position) -
dimCount
public int dimCount()Description copied from interface:FrameThe number of space dimensions.- Specified by:
dimCountin interfaceFrame<P extends FramePosition>- Returns:
- the number of space dimensions
-
matrix
Description copied from interface:FrameThe matrix, contained in this frame. There is a guarantee that thisInstance.Frame.matrix().dimCount()==thisInstance.Frame.dimCount().- Specified by:
matrixin interfaceFrame<P extends FramePosition>- Returns:
- matrix contained in this frame.
-
position
Description copied from interface:FrameThe position in n-dimensional space, where the givenmatrixis placed. There is a guarantee that thisInstance.Frame.position().area().coordCount()==thisInstance.Frame.dimCount().- Specified by:
positionin interfaceFrame<P extends FramePosition>- Returns:
- position in n-dimensional space, where the given
matrixis placed.
-
freeResources
public void freeResources()Description copied from interface:FrameCallsMatrix.freeResources(null)for the matrix, contained in this frame.- Specified by:
freeResourcesin interfaceFrame<P extends FramePosition>
-
toString
-
hashCode
public int hashCode()Description copied from interface:FrameReturns the hash code of this object. The result depends both on thematrixand theframe position. -
equals
Description copied from interface:Frame
-