IntersectionMatrix.fromMatrix constructor
IntersectionMatrix.fromMatrix(
- IntersectionMatrix other
Creates an IntersectionMatrix
with the same elements as
other
.
@param other an IntersectionMatrix
to copy
Implementation
IntersectionMatrix.fromMatrix(IntersectionMatrix other) {
_init();
matrix[Location.INTERIOR][Location.INTERIOR] =
other.matrix[Location.INTERIOR][Location.INTERIOR];
matrix[Location.INTERIOR][Location.BOUNDARY] =
other.matrix[Location.INTERIOR][Location.BOUNDARY];
matrix[Location.INTERIOR][Location.EXTERIOR] =
other.matrix[Location.INTERIOR][Location.EXTERIOR];
matrix[Location.BOUNDARY][Location.INTERIOR] =
other.matrix[Location.BOUNDARY][Location.INTERIOR];
matrix[Location.BOUNDARY][Location.BOUNDARY] =
other.matrix[Location.BOUNDARY][Location.BOUNDARY];
matrix[Location.BOUNDARY][Location.EXTERIOR] =
other.matrix[Location.BOUNDARY][Location.EXTERIOR];
matrix[Location.EXTERIOR][Location.INTERIOR] =
other.matrix[Location.EXTERIOR][Location.INTERIOR];
matrix[Location.EXTERIOR][Location.BOUNDARY] =
other.matrix[Location.EXTERIOR][Location.BOUNDARY];
matrix[Location.EXTERIOR][Location.EXTERIOR] =
other.matrix[Location.EXTERIOR][Location.EXTERIOR];
}