• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ModuleBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ModuleBase的典型用法代码示例。如果您正苦于以下问题:C# ModuleBase类的具体用法?C# ModuleBase怎么用?C# ModuleBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ModuleBase类属于命名空间,在下文中一共展示了ModuleBase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: Turbulence

 /// <summary>
 /// Initializes a new instance of Turbulence.
 /// </summary>
 /// <param name="input">The input module.</param>
 public Turbulence(ModuleBase input)
     : base(1)
 {
     this.m_xDistort = new Perlin();
     this.m_yDistort = new Perlin();
     this.m_zDistort = new Perlin();
     this.m_modules[0] = input;
 }
开发者ID:Keshire,项目名称:Unity-polygon-map-generation,代码行数:12,代码来源:Turbulence.cs


示例17: 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)
 {
     Modules[0] = input;
     Modules[1] = x;
     Modules[2] = y;
     Modules[3] = z;
 }
开发者ID:modopotato,项目名称:LibnoiseDesigner,代码行数:15,代码来源:Displace.cs


示例18: DocumentProvider

 public DocumentProvider(ModuleBase module)
 {
     this.module = module;
     
     _docProviderImpl = module.Resolve<DocumentProviderImpl>();
     
     _wsMessage = module.Resolve<IWsMessage>();
 }
开发者ID:killbug2004,项目名称:WSProf,代码行数:8,代码来源:DocumentProvider.cs


示例19: Translate

 /// <summary>
 /// Initializes a new instance of Translate.
 /// </summary>
 /// <param name="input">The input module.</param>
 public Translate(ModuleBase input)
     : base(1)
 {
     Modules[0] = input;
     X = 1.0;
     Z = 1.0;
     Y = 1.0;
 }
开发者ID:modopotato,项目名称:LibnoiseDesigner,代码行数:12,代码来源:Translate.cs


示例20: Mask

 public Mask(ModuleBase inputA, double min, double max)
     : base(1)
 {
     Modules[0] = inputA;
     MinMaskValue = min;
     MaxMaskValue = max;
     smoothlenght = smoothlenght / (double)DataBaseHandler.HeighMapSize;
 }
开发者ID:hybrid1969,项目名称:UCN-Sem5-2014,代码行数:8,代码来源:Mask.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ModuleBuilder类代码示例发布时间:2022-05-24
下一篇:
C# Module类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap