当前位置: 首页>>代码示例>>C#>>正文


C# ModuleBase类代码示例

本文整理汇总了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;
        }
开发者ID:PsychoTeras,项目名称:RatKing,代码行数:7,代码来源:Bias.cs

示例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;
 }
开发者ID:modopotato,项目名称:LibnoiseDesigner,代码行数:13,代码来源:ScaleBias.cs

示例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;
 }
开发者ID:simonwittber,项目名称:LibNoise-Unity,代码行数:13,代码来源:Clamp.cs

示例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;
 }
开发者ID:GCoe,项目名称:unity3d,代码行数:15,代码来源:Select.cs

示例5: Clamp

 public Clamp(double min, double max, ModuleBase input)
     : base(1)
 {
     this.Minimum = min;
     this.Maximum = max;
     this.m_modules[0] = input;
 }
开发者ID:GameDiffs,项目名称:TheForest,代码行数:7,代码来源:Clamp.cs

示例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;
 }
开发者ID:Andros-Spica,项目名称:LibNoise.Unity,代码行数:13,代码来源:Select.cs

示例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;
 }
开发者ID:modopotato,项目名称:LibnoiseDesigner,代码行数:11,代码来源:Clamp.cs

示例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;
 }
开发者ID:CelantInteractive,项目名称:Orbit-Game,代码行数:13,代码来源:ScaleBias.cs

示例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;
 }
开发者ID:modopotato,项目名称:LibnoiseDesigner,代码行数:15,代码来源:Select.cs

示例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;
 }
开发者ID:TehWardy,项目名称:Framework,代码行数:13,代码来源:Clamp.cs

示例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;
 }
开发者ID:CelantInteractive,项目名称:Orbit-Game,代码行数:13,代码来源:Blend.cs

示例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>();
 }
开发者ID:modopotato,项目名称:LibnoiseDesigner,代码行数:12,代码来源:Terrace.cs

示例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;
 }
开发者ID:simonwittber,项目名称:LibNoise-Unity,代码行数:13,代码来源:ScaleBias.cs

示例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;
 }
开发者ID:simonwittber,项目名称:LibNoise-Unity,代码行数:15,代码来源:Scale.cs

示例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;
 }
开发者ID:Keshire,项目名称:Unity-polygon-map-generation,代码行数:15,代码来源:Displace.cs


注:本文中的ModuleBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。