接口 Blendable<B>
- 类型参数:
-
B
- 可混合类
- 所有已知子接口:
-
RealMatrix
,SparseRealMatrix
,Vector<S,
V>
- 所有已知实现类:
-
AbstractRealMatrix
,Array2DRowRealMatrix
,BlockRealMatrix
,DiagonalMatrix
,OpenMapRealMatrix
,Vector1D
,Vector2D
,Vector3D
public interface Blendable<B>
Interface representing classes that can blend with other instances of themselves using a given blending value.
The blending value is commonly given from a smoothstep function
.
-
方法概要
修饰符和类型方法说明blendArithmeticallyWith
(B other, double blendingValue) Blend arithmetically this instance with another one.
-
方法详细资料
-
blendArithmeticallyWith
Blend arithmetically this instance with another one.- 参数:
-
other
- 要与之进行算术混合的另一个实例 -
blendingValue
- 来自smoothstep函数B(x)的值。预期应在[0:1]之间,否则将抛出异常。 - 返回:
- this * (1 - B(x)) + other * B(x)
- 抛出:
-
MathIllegalArgumentException
- 如果混合值不在[0:1]之间
-