Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / CircleEase.cs / 1305600 / CircleEase.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation, 2008 // // File: CircleEase.cs //----------------------------------------------------------------------------- namespace System.Windows.Media.Animation { ////// This class implements an easing function that gives a circular curve toward the destination. /// public class CircleEase : EasingFunctionBase { protected override double EaseInCore(double normalizedTime) { normalizedTime = Math.Max(0.0, Math.Min(1.0, normalizedTime)); return 1.0 - Math.Sqrt(1.0 - normalizedTime * normalizedTime); } protected override Freezable CreateInstanceCore() { return new CircleEase(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation, 2008 // // File: CircleEase.cs //----------------------------------------------------------------------------- namespace System.Windows.Media.Animation { ////// This class implements an easing function that gives a circular curve toward the destination. /// public class CircleEase : EasingFunctionBase { protected override double EaseInCore(double normalizedTime) { normalizedTime = Math.Max(0.0, Math.Min(1.0, normalizedTime)); return 1.0 - Math.Sqrt(1.0 - normalizedTime * normalizedTime); } protected override Freezable CreateInstanceCore() { return new CircleEase(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IssuanceLicense.cs
- ErrorActivity.cs
- LoginView.cs
- UnaryNode.cs
- TreeNode.cs
- CodePageEncoding.cs
- OdbcParameterCollection.cs
- Item.cs
- LicenseManager.cs
- AvtEvent.cs
- SoundPlayerAction.cs
- SqlConnectionStringBuilder.cs
- MediaTimeline.cs
- InvalidAsynchronousStateException.cs
- StackBuilderSink.cs
- HtmlControlDesigner.cs
- WebBrowserSiteBase.cs
- CommandField.cs
- NativeMethodsOther.cs
- TagMapInfo.cs
- diagnosticsswitches.cs
- __Error.cs
- Animatable.cs
- UnknownBitmapEncoder.cs
- TokenBasedSet.cs
- FormattedText.cs
- VirtualPath.cs
- XmlConvert.cs
- DataView.cs
- TileModeValidation.cs
- AnonymousIdentificationSection.cs
- ScriptReference.cs
- DateTimeConstantAttribute.cs
- HttpException.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlSchemaInferenceException.cs
- ExitEventArgs.cs
- XmlKeywords.cs
- OracleRowUpdatedEventArgs.cs
- DBAsyncResult.cs
- EventWaitHandleSecurity.cs
- RegexReplacement.cs
- CodeComment.cs
- InternalConfigRoot.cs
- SpecialNameAttribute.cs
- InteropAutomationProvider.cs
- NamespaceDisplayAutomationPeer.cs
- DiagnosticTraceSource.cs
- Composition.cs
- Tablet.cs
- PersonalizationStateInfoCollection.cs
- WebServiceHostFactory.cs
- Rotation3DAnimationBase.cs
- ScriptControl.cs
- ExtendedPropertyDescriptor.cs
- TcpHostedTransportConfiguration.cs
- XmlSchemaDatatype.cs
- Pen.cs
- ExtensionFile.cs
- EventLogPermission.cs
- HotSpotCollection.cs
- XmlSerializableReader.cs
- NotImplementedException.cs
- SHA512.cs
- IBuiltInEvidence.cs
- WinCategoryAttribute.cs
- SafeCryptContextHandle.cs
- ArrayWithOffset.cs
- UnsafeNativeMethodsCLR.cs
- UnsafeNativeMethods.cs
- FatalException.cs
- mediaeventshelper.cs
- DropShadowEffect.cs
- DataGridViewTextBoxColumn.cs
- ScriptControlDescriptor.cs
- ComPlusTypeLoader.cs
- ContextStaticAttribute.cs
- BaseCodeDomTreeGenerator.cs
- MimeFormatter.cs
- RegexCompiler.cs
- TreeNodeBinding.cs
- EventLogEntry.cs
- AuthorizationRule.cs
- NotSupportedException.cs
- SecurityKeyType.cs
- IResourceProvider.cs
- OleCmdHelper.cs
- Int16AnimationUsingKeyFrames.cs
- SchemaHelper.cs
- ByteRangeDownloader.cs
- FrameworkContextData.cs
- SmtpReplyReaderFactory.cs
- Variable.cs
- TableItemProviderWrapper.cs
- TdsEnums.cs
- ReadContentAsBinaryHelper.cs
- Camera.cs
- InfoCardService.cs
- AutomationFocusChangedEventArgs.cs
- CheckoutException.cs