Object Matrixs
-
-
Method Summary
Modifier and Type Method Description final Matrixzeros(Integer row, Integer column)通过给定的行列数返回一个全零矩阵 final Matrixones(Integer row, Integer column)通过给定的行列数返回一个全一矩阵 final Matrixeyes(Integer row, Integer column)通过给定的行列数返回一个单位矩阵 final Matrixrotate2D(Double theta)通过给定的角度返回一个平面旋转矩阵 final MatrixrotateAroundXAxis(Double theta)通过给定的角度返回一个关于X轴的旋转矩阵注意:该方法会返回3阶方阵 final MatrixrotateAroundYAxis(Double theta)通过给定的角度返回一个关于Z轴的旋转矩阵注意:该方法会返回3阶方阵 final MatrixrotateAroundZAxis(Double theta)通过给定的角度返回一个关于Z轴的旋转矩阵注意:该方法会返回3阶方阵 final Matrixscale(Integer row, Integer column, Double value)建立一个放大或缩小的矩阵 -
-
Method Detail
-
zeros
final Matrix zeros(Integer row, Integer column)
通过给定的行列数返回一个全零矩阵
- Parameters:
row- 行数column- 列数- Returns:
-
ones
final Matrix ones(Integer row, Integer column)
通过给定的行列数返回一个全一矩阵
- Parameters:
row- 行数column- 列数- Returns:
-
eyes
final Matrix eyes(Integer row, Integer column)
通过给定的行列数返回一个单位矩阵
- Parameters:
row- 行数column- 列数- Returns:
-
rotateAroundXAxis
final Matrix rotateAroundXAxis(Double theta)
通过给定的角度返回一个关于X轴的旋转矩阵
注意:该方法会返回3阶方阵
- Parameters:
theta- 旋转角度- Returns:
-
rotateAroundYAxis
final Matrix rotateAroundYAxis(Double theta)
通过给定的角度返回一个关于Z轴的旋转矩阵
注意:该方法会返回3阶方阵
- Parameters:
theta- 旋转角度- Returns:
-
rotateAroundZAxis
final Matrix rotateAroundZAxis(Double theta)
通过给定的角度返回一个关于Z轴的旋转矩阵
注意:该方法会返回3阶方阵
- Parameters:
theta- 旋转角度- Returns:
-
-
-
-