本文整理汇总了C#中InterpolationType类的典型用法代码示例。如果您正苦于以下问题:C# InterpolationType类的具体用法?C# InterpolationType怎么用?C# InterpolationType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InterpolationType类属于命名空间,在下文中一共展示了InterpolationType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Instance
public static IInterpolation Instance(InterpolationType type)
{
if (type == InterpolationType.InterpolationTypeSmooth)
return new SmoothInterpolation();
else
return new SmoothInterpolation();
}
示例2: ViewMoverKenBurnsStyle
public ViewMoverKenBurnsStyle(CameraParameters from, CameraParameters to, double time, Date fromDateTime, Date toDateTime, InterpolationType type)
{
InterpolationType = type;
if (Math.Abs(from.Lng - to.Lng) > 180)
{
if (from.Lng > to.Lng)
{
from.Lng -= 360;
}
else
{
from.Lng += 360;
}
}
this.fromDateTime = fromDateTime;
this.toDateTime = toDateTime;
dateTimeSpan = toDateTime - fromDateTime;
this.from = from.Copy();
this.to = to.Copy();
fromTime = Date.Now;
toTargetTime = time;
}
示例3: AllowedLimitedPrefix
public static bool AllowedLimitedPrefix(InterpolationType x)
{
if ((x == InterpolationType.limitedCubic) ||
(x == InterpolationType.limitedLinear))
return false;
return true;
}
示例4: FCurveKeyframe
public FCurveKeyframe(InterpolationType interpolationType = asd.InterpolationType.Linear)
{
LeftHandle = new Vector2DF();
RightHandle = new Vector2DF();
KeyValue = new Vector2DF();
Interpolation = interpolationType;
}
示例5: GetInterpolatedValue
public double GetInterpolatedValue(double compleatedRatio0To1, InterpolationType interpolationType)
{
switch (interpolationType)
{
case InterpolationType.LINEAR:
return compleatedRatio0To1;
case InterpolationType.EASE_IN:
return Math.Pow(compleatedRatio0To1, 3);
case InterpolationType.EASE_OUT:
return (Math.Pow(compleatedRatio0To1 - 1, 3) + 1);
case InterpolationType.EASE_IN_OUT:
if (compleatedRatio0To1 < .5)
{
return Math.Pow(compleatedRatio0To1 * 2, 3) / 2;
}
else
{
return (Math.Pow(compleatedRatio0To1 * 2 - 2, 3) + 2) / 2;
}
default:
throw new NotImplementedException();
}
}
示例6: ArcGISImageCapabilities
public ArcGISImageCapabilities(string url, long startTime = -1, long endTime = -1, string format = "jpgpng", InterpolationType interpolation = InterpolationType.RSP_NearestNeighbor)
{
ServiceUrl = url;
Format = format;
Interpolation = interpolation;
StartTime = startTime;
EndTime = endTime;
}
示例7: Keyframe
public Keyframe(Bone bone, float time, Matrix output, InterpolationType interpolation)
{
Bone = bone;
Time = time;
Transform = output;
Interpolation = interpolation;
Transform.Decompose(out Scale, out Rotation, out Translation);
}
示例8: InterpolationTypeToString
static string InterpolationTypeToString(InterpolationType eInterpolationType)
{
if (eInterpolationType == InterpolationType.LINEAR)
{
return "LINEAR";
}
throw new MyException ("Interpolation Type not recognized");
}
示例9: ImplicitFractal
public ImplicitFractal(FractalType fractalType, BasisType basisType, InterpolationType interpolationType)
{
this.Octaves = 8;
this.Frequency = 1.00;
this.Lacunarity = 2.00;
this.Type = fractalType;
this.SetAllSourceTypes(basisType, interpolationType);
this.ResetAllSources();
}
示例10: TimedInterpolator
public TimedInterpolator(double in_numSeconds, double in_startValue, double in_endValue, Repeate in_repeateType, InterpolationType in_interpolationType)
: this()
{
numSeconds = in_numSeconds;
startValue = in_startValue;
endValue = in_endValue;
distance = endValue - startValue;
repeateType = in_repeateType;
interpolationType = in_interpolationType;
}
示例11: Reset
public override void Reset()
{
mode = InterpolationType.Linear;
fromFloat = null;
toFloat = null;
time = 1.0f;
storeResult = null;
finishEvent = null;
realTime = false;
}
示例12: Reset
public override void Reset()
{
mode = InterpolationType.Linear;
fromVector = new FsmVector3 { UseVariable = true };
toVector = new FsmVector3 { UseVariable = true };
time = 1.0f;
storeResult = null;
finishEvent = null;
realTime = false;
}
示例13: StrictlyBoundedField
public static bool StrictlyBoundedField(InterpolationType x)
{
if ((x == InterpolationType.limitedLinear)
|| (x == InterpolationType.vanLeer)
|| (x == InterpolationType.Gamma)
|| (x == InterpolationType.limitedCubic)
|| (x == InterpolationType.MUSCL)
) return true;
return false;
}
示例14: ImplicitFractal
public ImplicitFractal(FractalType fractalType, BasisType basisType, InterpolationType interpolationType, Int32 octaves, double frequency, Int32 seed)
{
this.seed = seed;
this.Octaves = octaves;
this.Frequency = frequency;
this.Lacunarity = 2.00;
this.Type = fractalType;
this.SetAllSourceTypes(basisType, interpolationType);
this.ResetAllSources();
}
示例15: AnimationTrack
/// <summary>
/// コンストラクター
/// </summary>
/// <param name="targetProperty">ターゲット プロパティ名</param>
/// <param name="interp">補完方法</param>
public AnimationTrack(string targetProperty,InterpolationType interp)
{
if (targetProperty == null || targetProperty == "") {
throw new ArgumentNullException ("Target Property is null or empty");
}
this.targetProperty = targetProperty;
this.frames = new List<Keyframe>();
this.interpType = interp;
this.compCount = 0;
this.compType = null;
}