Class MatrixExtensions
- java.lang.Object
-
- org.arakhne.afc.math.extensions.scala.MatrixExtensions
-
public final class MatrixExtensions extends Object
Scala extensions for matrices.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <M extends Matrix2d>
M$div(double left, M right)
Replies the division of this matrix by the given scalar:left / right
.static <M extends Matrix2d>
M$minus(double left, M right)
Replies the substraction of the given scalar to this matrix:left - right
.static <M extends Matrix2d>
M$plus(double left, M right)
Replies the addition of the given scalar to this matrix:left + right
.static <M extends Matrix2d>
M$times(double left, M right)
Replies the multiplication of the given scalar and this matrix:left * right
.
-
-
-
Method Detail
-
$plus
@Pure public static <M extends Matrix2d> M $plus(double left, M right)
Replies the addition of the given scalar to this matrix:left + right
.This function is an implementation of the operator for the Scala Language.
The operation
right + left
is supported byMatrix2d.$plus(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the sum of the matrix and the scalar.
- See Also:
Matrix2d.add(double)
,Matrix2d.$plus(double)
-
$plus
@Pure public static <M extends Matrix3d> M $plus(double left, M right)
Replies the addition of the given scalar to this matrix:left + right
.This function is an implementation of the operator for the Scala Language.
The operation
right + left
is supported byMatrix3d.$plus(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the sum of the matrix and the scalar.
- See Also:
Matrix3d.add(double)
,Matrix3d.$plus(double)
-
$plus
@Pure public static <M extends Matrix4d> M $plus(double left, M right)
Replies the addition of the given scalar to this matrix:left + right
.This function is an implementation of the operator for the Scala Language.
The operation
right + left
is supported byMatrix4d.$plus(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the sum of the matrix and the scalar.
- See Also:
Matrix4d.add(double)
,Matrix4d.$plus(double)
-
$minus
@Pure public static <M extends Matrix2d> M $minus(double left, M right)
Replies the substraction of the given scalar to this matrix:left - right
.This function is an implementation of the operator for the Scala Language.
The operation
right - left
is supported byMatrix2d.$minus(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the sum of the matrix and the scalar.
- See Also:
Matrix2d.add(double)
,Matrix2d.$minus(double)
-
$minus
@Pure public static <M extends Matrix3d> M $minus(double left, M right)
Replies the substraction of the given scalar to this matrix:left - right
.This function is an implementation of the operator for the Scala Language.
The operation
right - left
is supported byMatrix3d.$minus(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the sum of the matrix and the scalar.
- See Also:
Matrix3d.add(double)
,Matrix3d.$minus(double)
-
$minus
@Pure public static <M extends Matrix4d> M $minus(double left, M right)
Replies the substraction of the given scalar to this matrix:left - right
.This function is an implementation of the operator for the Scala Language.
The operation
right - left
is supported byMatrix4d.$minus(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the sum of the matrix and the scalar.
- See Also:
Matrix4d.add(double)
,Matrix4d.$minus(double)
-
$times
@Pure public static <M extends Matrix2d> M $times(double left, M right)
Replies the multiplication of the given scalar and this matrix:left * right
.This function is an implementation of the operator for the Scala Language.
The operation
right * left
is supported byMatrix2d.$times(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the multiplication of the scalar and the matrix.
- See Also:
Matrix2d.mul(double)
,Matrix2d.$times(double)
-
$times
@Pure public static <M extends Matrix3d> M $times(double left, M right)
Replies the multiplication of the given scalar and this matrix:left * right
.This function is an implementation of the operator for the Scala Language.
The operation
right * left
is supported byMatrix3d.$times(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the multiplication of the scalar and the matrix.
- See Also:
Matrix3d.mul(double)
,Matrix3d.$times(double)
-
$times
@Pure public static <M extends Matrix4d> M $times(double left, M right)
Replies the multiplication of the given scalar and this matrix:left * right
.This function is an implementation of the operator for the Scala Language.
The operation
right * left
is supported byMatrix4d.$times(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the multiplication of the scalar and the matrix.
- See Also:
Matrix4d.mul(double)
,Matrix4d.$times(double)
-
$div
@Pure public static <M extends Matrix2d> M $div(double left, M right)
Replies the division of this matrix by the given scalar:left / right
.This function is an implementation of the operator for the Scala Language.
The operation
right / left
is supported byMatrix2d.$div(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the division of the matrix by the scalar.
- See Also:
Matrix2d.mul(double)
,Matrix2d.$div(double)
-
$div
@Pure public static <M extends Matrix3d> M $div(double left, M right)
Replies the division of this matrix by the given scalar:left / right
.This function is an implementation of the operator for the Scala Language.
The operation
right / left
is supported byMatrix3d.$div(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the division of the matrix by the scalar.
- See Also:
Matrix3d.mul(double)
,Matrix3d.$div(double)
-
$div
@Pure public static <M extends Matrix4d> M $div(double left, M right)
Replies the division of this matrix by the given scalar:left / right
.This function is an implementation of the operator for the Scala Language.
The operation
right / left
is supported byMatrix4d.$div(double)
.- Type Parameters:
M
- the type of the matrix.- Parameters:
left
- the scalar.right
- the matrix.- Returns:
- the division of the matrix by the scalar.
- See Also:
Matrix4d.mul(double)
,Matrix4d.$div(double)
-
-