本文整理汇总了C#中ModuleBase类的典型用法代码示例。如果您正苦于以下问题:C# ModuleBase类的具体用法?C# ModuleBase怎么用?C# ModuleBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ModuleBase类属于命名空间,在下文中一共展示了ModuleBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Bias
public Bias(ModuleBase source, double? bias)
{
Source = source;
if (bias != null)
_bias = (double) bias;
}
示例2: ScaleBias
/// <summary>
/// Initializes a new instance of ScaleBias.
/// </summary>
/// <param name="scale">The scaling factor to apply to the output value from the source module.</param>
/// <param name="bias">The bias to apply to the scaled output value from the source module.</param>
/// <param name="input">The input module.</param>
public ScaleBias(double scale, double bias, ModuleBase input)
: base(1)
{
Modules[0] = input;
Bias = bias;
Scale = scale;
}
示例3: Clamp
/// <summary>
/// Initializes a new instance of Clamp.
/// </summary>
/// <param name="input">The input module.</param>
/// <param name="min">The minimum value.</param>
/// <param name="max">The maximum value.</param>
public Clamp(float min, float max, ModuleBase input)
: base(1)
{
this.Minimum = min;
this.Maximum = max;
this.m_modules[0] = input;
}
示例4: Select
/// <summary>
/// Initializes a new instance of Select.
/// </summary>
/// <param name="min">The minimum value.</param>
/// <param name="max">The maximum value.</param>
/// <param name="fallOff">The falloff value at the edge transition.</param>
/// <param name="inputA">The first input module.</param>
/// <param name="inputB">The second input module.</param>
public Select(double min, double max, double fallOff, ModuleBase inputA, ModuleBase inputB)
: this(inputA, inputB, null)
{
this.m_min = min;
this.m_max = max;
this.FallOff = fallOff;
}
示例5: Clamp
public Clamp(double min, double max, ModuleBase input)
: base(1)
{
this.Minimum = min;
this.Maximum = max;
this.m_modules[0] = input;
}
示例6: Select
/// <summary>
/// Initializes a new instance of Select.
/// </summary>
/// <param name="inputA">The first input module.</param>
/// <param name="inputB">The second input module.</param>
/// <param name="controller">The controller module.</param>
public Select(ModuleBase inputA, ModuleBase inputB, ModuleBase controller)
: base(3)
{
Modules[0] = inputA;
Modules[1] = inputB;
Modules[2] = controller;
}
示例7: Clamp
/// <summary>
/// Initializes a new instance of Clamp.
/// </summary>
/// <param name="input">The input module.</param>
public Clamp(ModuleBase input)
: base(1)
{
Modules[0] = input;
Minimum = -1.0;
Maximum = 1.0;
}
示例8: ScaleBias
/// <summary>
/// Initializes a new instance of ScaleBias.
/// </summary>
/// <param name="scale">The scaling factor to apply to the output value from the source module.</param>
/// <param name="bias">The bias to apply to the scaled output value from the source module.</param>
/// <param name="input">The input module.</param>
public ScaleBias(double scale, double bias, ModuleBase input)
: base(1)
{
this.m_modules[0] = input;
this.Bias = bias;
this.Scale = scale;
}
示例9: Select
/// <summary>
/// Initializes a new instance of Select.
/// </summary>
/// <param name="min">The minimum value.</param>
/// <param name="max">The maximum value.</param>
/// <param name="fallOff">The falloff value at the edge transition.</param>
/// <param name="inputA">The first input module.</param>
/// <param name="inputB">The second input module.</param>
public Select(double min, double max, double fallOff, ModuleBase inputA, ModuleBase inputB, ModuleBase controller)
: this(inputA, inputB, controller)
{
_min = min;
_max = max;
FallOff = fallOff;
}
示例10: Clamp
/// <summary>
/// Initializes a new instance of Clamp.
/// </summary>
/// <param name="input">The input module.</param>
/// <param name="min">The minimum value.</param>
/// <param name="max">The maximum value.</param>
public Clamp(double min, double max, ModuleBase input)
: base(1)
{
Minimum = min;
Maximum = max;
Modules[0] = input;
}
示例11: Blend
/// <summary>
/// Initializes a new instance of Blend.
/// </summary>
/// <param name="lhs">The left hand input module.</param>
/// <param name="rhs">The right hand input module.</param>
/// <param name="controller">The controller of the operator.</param>
public Blend(ModuleBase lhs, ModuleBase rhs, ModuleBase controller)
: base(3)
{
this.m_modules[0] = lhs;
this.m_modules[1] = rhs;
this.m_modules[2] = controller;
}
示例12: Terrace
/// <summary>
/// Initializes a new instance of Terrace.
/// </summary>
/// <param name="inverted">Indicates whether the terrace curve is inverted.</param>
/// <param name="input">The input module.</param>
public Terrace(bool inverted, ModuleBase input)
: base(1)
{
Modules[0] = input;
IsInverted = inverted;
ControlPoints = new List<double>();
}
示例13: ScaleBias
/// <summary>
/// Initializes a new instance of ScaleBias.
/// </summary>
/// <param name="scale">The scaling factor to apply to the output value from the source module.</param>
/// <param name="bias">The bias to apply to the scaled output value from the source module.</param>
/// <param name="input">The input module.</param>
public ScaleBias(float scale, float bias, ModuleBase input)
: base(1)
{
this.m_modules[0] = input;
this.Bias = bias;
this.Scale = scale;
}
示例14: Scale
/// <summary>
/// Initializes a new instance of Scale.
/// </summary>
/// <param name="x">The scaling on the x-axis.</param>
/// <param name="y">The scaling on the y-axis.</param>
/// <param name="z">The scaling on the z-axis.</param>
/// <param name="input">The input module.</param>
public Scale(float x, float y, float z, ModuleBase input)
: base(1)
{
this.m_modules[0] = input;
this.X = x;
this.Y = y;
this.Z = z;
}
示例15: Displace
/// <summary>
/// Initializes a new instance of Displace.
/// </summary>
/// <param name="input">The input module.</param>
/// <param name="x">The displacement module of the x-axis.</param>
/// <param name="y">The displacement module of the y-axis.</param>
/// <param name="z">The displacement module of the z-axis.</param>
public Displace(ModuleBase input, ModuleBase x, ModuleBase y, ModuleBase z)
: base(4)
{
this.m_modules[0] = input;
this.m_modules[1] = x;
this.m_modules[2] = y;
this.m_modules[3] = z;
}