Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (87)
18internal static Byte InterpolateByte(Byte from, Byte to, Double progress)
20return (Byte)((Int32)from + (Int32)((((Double)(to - from)) + (Double)0.5) * progress));
23internal static Color InterpolateColor(Color from, Color to, Double progress)
28internal static Decimal InterpolateDecimal(Decimal from, Decimal to, Double progress)
33internal static Double InterpolateDouble(Double from, Double to, Double progress)
38internal static Int16 InterpolateInt16(Int16 from, Int16 to, Double progress)
50Double addend = (Double)(to - from);
58internal static Int32 InterpolateInt32(Int32 from, Int32 to, Double progress)
70Double addend = (Double)(to - from);
78internal static Int64 InterpolateInt64(Int64 from, Int64 to, Double progress)
90Double addend = (Double)(to - from);
98internal static Point InterpolatePoint(Point from, Point to, Double progress)
103internal static Point3D InterpolatePoint3D(Point3D from, Point3D to, Double progress)
108internal static Quaternion InterpolateQuaternion(Quaternion from, Quaternion to, Double progress, bool useShortestPath)
113internal static Rect InterpolateRect(Rect from, Rect to, Double progress)
128internal static Rotation3D InterpolateRotation3D(Rotation3D from, Rotation3D to, Double progress)
133internal static Single InterpolateSingle(Single from, Single to, Double progress)
138internal static Size InterpolateSize(Size from, Size to, Double progress)
143internal static System.Windows.Vector InterpolateVector(System.Windows.Vector from, System.Windows.Vector to, Double progress)
148internal static Vector3D InterpolateVector3D(Vector3D from, Vector3D to, Double progress)
172internal static Double AddDouble(Double value1, Double value2)
274internal static Double SubtractDouble(Double value1, Double value2)
354internal static Double GetSegmentLengthBoolean(Boolean from, Boolean to)
366internal static Double GetSegmentLengthByte(Byte from, Byte to)
371internal static Double GetSegmentLengthChar(Char from, Char to)
383internal static Double GetSegmentLengthColor(Color from, Color to)
391internal static Double GetSegmentLengthDecimal(Decimal from, Decimal to)
396return (Double)Math.Abs(to - from);
399internal static Double GetSegmentLengthDouble(Double from, Double to)
404internal static Double GetSegmentLengthInt16(Int16 from, Int16 to)
409internal static Double GetSegmentLengthInt32(Int32 from, Int32 to)
414internal static Double GetSegmentLengthInt64(Int64 from, Int64 to)
419internal static Double GetSegmentLengthMatrix(Matrix from, Matrix to)
431internal static Double GetSegmentLengthObject(Object from, Object to)
436internal static Double GetSegmentLengthPoint(Point from, Point to)
441internal static Double GetSegmentLengthPoint3D(Point3D from, Point3D to)
446internal static Double GetSegmentLengthQuaternion(Quaternion from, Quaternion to)
453internal static Double GetSegmentLengthRect(Rect from, Rect to)
459Double a = GetSegmentLengthPoint(from.Location, to.Location);
460Double b = GetSegmentLengthSize(from.Size, to.Size);
466internal static Double GetSegmentLengthRotation3D(Rotation3D from, Rotation3D to)
471internal static Double GetSegmentLengthSingle(Single from, Single to)
476internal static Double GetSegmentLengthSize(Size from, Size to)
481internal static Double GetSegmentLengthString(String from, String to)
493internal static Double GetSegmentLengthVector(System.Windows.Vector from, System.Windows.Vector to)
498internal static Double GetSegmentLengthVector3D(Vector3D from, Vector3D to)
507internal static Byte ScaleByte(Byte value, Double factor)
509return (Byte)((Double)value * factor);
512internal static Color ScaleColor(Color value, Double factor)
517internal static Decimal ScaleDecimal(Decimal value, Double factor)
522internal static Double ScaleDouble(Double value, Double factor)
527internal static Int16 ScaleInt16(Int16 value, Double factor)
529return (Int16)((Double)value * factor);
532internal static Int32 ScaleInt32(Int32 value, Double factor)
534return (Int32)((Double)value * factor);
537internal static Int64 ScaleInt64(Int64 value, Double factor)
539return (Int64)((Double)value * factor);
542internal static Point ScalePoint(Point value, Double factor)
549internal static Point3D ScalePoint3D(Point3D value, Double factor)
557internal static Quaternion ScaleQuaternion(Quaternion value, Double factor)
562internal static Rect ScaleRect(Rect value, Double factor)
576internal static Rotation3D ScaleRotation3D(Rotation3D value, Double factor)
581internal static Single ScaleSingle(Single value, Double factor)
583return (Single)((Double)value * factor);
586internal static Size ScaleSize(Size value, Double factor)
591internal static System.Windows.Vector ScaleVector(System.Windows.Vector value, Double factor)
596internal static Vector3D ScaleVector3D(Vector3D value, Double factor)
630internal static bool IsValidAnimationValueDouble(Double value)
772internal static Double GetZeroValueDouble(Double baseValue)
841private static Boolean IsInvalidDouble(Double value)
843return Double.IsInfinity(value)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (32)
45private Double[] _keyValues;
60Type typeofProp = typeof(Double?);
69new PropertyMetadata((Double?)null, propCallback),
76new PropertyMetadata((Double?)null, propCallback),
83new PropertyMetadata((Double?)null, propCallback),
107public DoubleAnimation(Double toValue, Duration duration)
119public DoubleAnimation(Double toValue, Duration duration, FillBehavior fillBehavior)
132public DoubleAnimation(Double fromValue, Double toValue, Duration duration)
145public DoubleAnimation(Double fromValue, Double toValue, Duration duration, FillBehavior fillBehavior)
218protected override Double GetCurrentValueCore(Double defaultOriginValue, Double defaultDestinationValue, AnimationClock animationClock)
235Double from = new Double();
236Double to = new Double();
237Double accumulated = new Double();
238Double foundation = new Double();
352Double accumulator = AnimatedTypeHelpers.SubtractDouble(to, from);
377_keyValues = new Double[2];
384_keyValues = new Double[2];
391_keyValues = new Double[1];
398_keyValues = new Double[1];
404_keyValues = new Double[1];
425Double? typedValue = (Double?)value;
445public Double? From
449return (Double?)GetValue(FromProperty);
465public Double? To
469return (Double?)GetValue(ToProperty);
485public Double? By
489return (Double?)GetValue(ByProperty);
src\Framework\System\Windows\Controls\ScrollViewer.cs (8)
121public void ScrollToLeftEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); }
125public void ScrollToRightEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.PositiveInfinity, null); }
132EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null);
133EnqueueCommand(Commands.SetVerticalOffset, Double.NegativeInfinity, null);
140EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null);
141EnqueueCommand(Commands.SetVerticalOffset, Double.PositiveInfinity, null);
147public void ScrollToTop() { EnqueueCommand(Commands.SetVerticalOffset, Double.NegativeInfinity, null); }
151public void ScrollToBottom() { EnqueueCommand(Commands.SetVerticalOffset, Double.PositiveInfinity, null); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
280Double borderWidth = this.BorderWidth;
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
235internal static Double GetDouble( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
244return (Double) result;
485Double temp = GetDouble_Unchecked( sink, getters, ordinal );
1422internal static void SetDouble( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, Double value ) {
1601case ExtendedClrTypeCode.Double: SetDouble_Unchecked( sink, setters, ordinal, (Double) value ); break;
3098private static Double GetDouble_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
3101Double result = getters.GetDouble( sink, ordinal );
3347private static void SetDouble_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, Double value ) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
710(15, 255, 8, true, false, false, TdsEnums.SQLFLT8, TdsEnums.SQLFLTN, MetaTypeName.FLOAT, typeof(System.Double), typeof(SqlDouble), SqlDbType.Float, DbType.Double, 0);