本文整理汇总了C#中genType类的典型用法代码示例。如果您正苦于以下问题:C# genType类的具体用法?C# genType怎么用?C# genType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
genType类属于命名空间,在下文中一共展示了genType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: clamp
/// <summary>
/// Returns min (max (x, minVal), maxVal)
/// Results are undefined if minVal > maxVal.
/// </summary>
/// <param name="x"></param>
/// <param name="minVal"></param>
/// <param name="maxVal"></param>
/// <returns></returns>
protected genType clamp(genType x,
float minVal,
float maxVal) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:11,代码来源:Shader.Common.vec2.cs
示例2: expSingleGeneration_Expanded
//--------------------------------------------------
private void expSingleGeneration_Expanded(object sender, RoutedEventArgs e)
{
if (!initializeComponentIsCompleted) return;
if (disableExpandersEvents) return;
disableExpandersEvents = true;
if (lockExpanders)
{
expSingleGeneration.IsExpanded = false;
disableExpandersEvents = false;
return;
}
lastExpanded_GenType = genType.Single;
if (expPassword.IsExpanded == false && expWPA.IsExpanded == false)
switch (lastExpanded_PswType)
{
case pswType.Password:
expPassword.IsExpanded = true;
break;
case pswType.WPA:
expWPA.IsExpanded = true;
break;
}
expBulkGeneration.IsExpanded = false;
expCmdline.IsExpanded = false;
expAbout.IsExpanded = false;
disableExpandersEvents = false;
}
开发者ID:hurta2yaisel,项目名称:awesome-password-generator,代码行数:32,代码来源:MainWindow.xaml.cs
示例3: __vec3
public __vec3(genType x, genType y, genType z)
{
this._x = x;
this._y = y;
this._z = z;
}
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:6,代码来源:vec3.cs
示例4: degrees
/// <summary>
/// Converts radians to degrees,
/// </summary>
/// <param name="radians"></param>
/// <returns></returns>
protected genType degrees(genType radians) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:6,代码来源:Shader.Trigonometry.float.cs
示例5: acos
/// <summary>
/// Arc cosine. Returns an angle whose cosine is x.
/// </summary>
/// <param name="x"></param>
/// <returns></returns>
protected genType acos(genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:6,代码来源:Shader.Trigonometry.float.cs
示例6: smoothstep
/// <summary>
/// <summary>
/// Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and
/// performs smooth Hermite interpolation between 0 and 1
/// when edge0 < x < edge1. This is useful in cases where
/// you would want a threshold function with a smooth
/// transition. This is equivalent to:
/// genType t;
/// t = clamp ((x – edge0) / (edge1 – edge0), 0, 1);
/// return t * t * (3 – 2 * t);
/// Results are undefined if edge0 >= edge1.
/// </summary>
/// </summary>
protected genType smoothstep(float edge0,
float edge1,
genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:16,代码来源:Shader.Common.vec2.cs
示例7: mod
/// <summary>
/// Modulus. Returns x – y * floor (x/y)
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <returns></returns>
protected genType mod(genType x, genType y) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:7,代码来源:Shader.Common.vec2.cs
示例8: length
/// <summary>
/// Returns the length of vector x,
/// </summary>
/// <param name="x"></param>
/// <returns></returns>
protected float length(genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:6,代码来源:Shader.Geometric.vec3.cs
示例9: distance
/// <summary>
/// Returns the distance between p0 and p1,
/// </summary>
/// <param name="p0"></param>
/// <param name="p1"></param>
/// <returns></returns>
protected float distance(genType p0, genType p1) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:7,代码来源:Shader.Geometric.vec3.cs
示例10: floor
/// <summary>
/// Returns a value equal to the nearest integer that is less than or equal to x
/// </summary>
public genType floor(genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:4,代码来源:Shader.Common.float.cs
示例11: mod
/// <summary>
/// Modulus (modulo). Returns x – y * floor (x/y)
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <returns></returns>
public genType mod(genType x, float y) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:7,代码来源:Shader.Common.float.cs
示例12: inversesqrt
protected genType inversesqrt(genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:1,代码来源:Shader.Exponential.vec2.cs
示例13: __vec2
public __vec2(genType x, genType y)
{
this._x = x;
this._y = y;
}
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:5,代码来源:vec2.cs
示例14: vec3
public vec3(genType x, genType y, genType z)
{
throw new NotImplementedException();
}
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:4,代码来源:vec3.cs
示例15: mix
/// <summary>
/// Returns the linear blend of x and y, i.e. x
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <param name="a"></param>
/// <returns></returns>
protected genType mix(genType x,
genType y,
float a) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:10,代码来源:Shader.Common.vec2.cs
示例16: dot
/// <summary>
/// Returns the dot product of x and y,
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <returns></returns>
protected float dot(genType x, genType y) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:7,代码来源:Shader.Geometric.vec3.cs
示例17: step
/// <summary>
/// Returns 0.0 if x < edge, otherwise it returns 1.0
/// </summary>
/// <param name="edge0"></param>
/// <param name="edge1"></param>
/// <param name="x"></param>
/// <returns></returns>
protected genType step(float edge, genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:8,代码来源:Shader.Common.vec2.cs
示例18: normalize
/// <summary>
/// Returns a vector in the same direction as x but with a
/// length of 1.
/// </summary>
/// <param name="x"></param>
/// <returns></returns>
protected genType normalize(genType x) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:7,代码来源:Shader.Geometric.vec3.cs
示例19: dFdy
/// <summary>
/// dFdx, dFdy — return the partial derivative of an argument with respect to x or y
/// </summary>
/// <param name="p"></param>
/// <returns></returns>
protected genType dFdy(genType p) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:6,代码来源:Shader.Common.vec2.cs
示例20: faceforward
/// <summary>
/// If dot(Nref, I) < 0 return N, otherwise return –N.
/// </summary>
/// <param name="N"></param>
/// <param name="I"></param>
/// <param name="Nref"></param>
/// <returns></returns>
protected genType faceforward(genType N, genType I, genType Nref) { throw new NotImplementedException(); }
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:8,代码来源:Shader.Geometric.vec3.cs
注:本文中的genType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论