接口 FieldBlendable<B,T extends FieldElement<T>>
- 类型参数:
-
B- 可混合类 -
T- 字段元素的类型
- 所有已知子接口:
-
FieldMatrix<T>
- 所有已知实现类:
-
AbstractFieldMatrix,Array2DRowFieldMatrix,BlockFieldMatrix,FieldVector3D,SparseFieldMatrix
public interface FieldBlendable<B,T extends FieldElement<T>>
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, T 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]之间
-