本文整理汇总了C#中genType类的典型用法代码示例。如果您正苦于以下问题:C# genType类的具体用法?C# genType怎么用?C# genType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
genType类属于命名空间,在下文中一共展示了genType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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(); }
示例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;
}
示例3: __vec3
public __vec3(genType x, genType y, genType z)
{
this._x = x;
this._y = y;
this._z = z;
}
示例4: degrees
/// <summary>
/// Converts radians to degrees,
/// </summary>
/// <param name="radians"></param>
/// <returns></returns>
protected genType degrees(genType radians) { throw new NotImplementedException(); }
示例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(); }
示例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(); }
示例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(); }
示例8: length
/// <summary>
/// Returns the length of vector x,
/// </summary>
/// <param name="x"></param>
/// <returns></returns>
protected float length(genType x) { throw new NotImplementedException(); }
示例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(); }
示例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(); }
示例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(); }
示例12: inversesqrt
protected genType inversesqrt(genType x) { throw new NotImplementedException(); }
示例13: __vec2
public __vec2(genType x, genType y)
{
this._x = x;
this._y = y;
}
示例14: vec3
public vec3(genType x, genType y, genType z)
{
throw new NotImplementedException();
}
示例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(); }