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
- Configuration.cs
- UIElement.cs
- WinFormsComponentEditor.cs
- CodeCatchClauseCollection.cs
- Hyperlink.cs
- Light.cs
- EventHandlerList.cs
- PathFigureCollectionValueSerializer.cs
- QuerySafeNavigator.cs
- TransactionChannelListener.cs
- _CommandStream.cs
- BamlTreeUpdater.cs
- Panel.cs
- RoleManagerModule.cs
- CopyOfAction.cs
- WebContentFormatHelper.cs
- HtmlInputPassword.cs
- LoadWorkflowAsyncResult.cs
- CaseExpr.cs
- ChangeBlockUndoRecord.cs
- NumericExpr.cs
- WhitespaceSignificantCollectionAttribute.cs
- SamlConstants.cs
- ReadOnlyCollectionBuilder.cs
- DataControlImageButton.cs
- ColumnMapVisitor.cs
- Size3DConverter.cs
- SafeUserTokenHandle.cs
- ServiceHttpModule.cs
- ToolZone.cs
- TemplateComponentConnector.cs
- BordersPage.cs
- RenderTargetBitmap.cs
- HandlerBase.cs
- CompositionAdorner.cs
- DiscardableAttribute.cs
- Random.cs
- CompilerTypeWithParams.cs
- HttpHeaderCollection.cs
- PnrpPermission.cs
- StyleSelector.cs
- ClientScriptManager.cs
- Margins.cs
- Blend.cs
- TCPClient.cs
- Stylus.cs
- StrokeFIndices.cs
- Int64Storage.cs
- WindowsGraphicsCacheManager.cs
- ListBindingHelper.cs
- WebBrowserContainer.cs
- SelectorAutomationPeer.cs
- ApplicationActivator.cs
- MenuItemCollection.cs
- SkinBuilder.cs
- _UncName.cs
- SelectionRange.cs
- RestClientProxyHandler.cs
- MarginCollapsingState.cs
- ObjectManager.cs
- Permission.cs
- ListItemParagraph.cs
- PackageProperties.cs
- SelectionEditor.cs
- login.cs
- DataContractSerializer.cs
- contentDescriptor.cs
- GetTokenRequest.cs
- HashAlgorithm.cs
- NativeMethods.cs
- MimeTypeAttribute.cs
- AppSettings.cs
- RelationshipType.cs
- SystemIcmpV6Statistics.cs
- Models.cs
- DataColumnMappingCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- CommandManager.cs
- FileDialogCustomPlace.cs
- CssClassPropertyAttribute.cs
- ProxySimple.cs
- OdbcConnectionOpen.cs
- Rect.cs
- Constraint.cs
- DesignObjectWrapper.cs
- ActivationServices.cs
- AdornerPresentationContext.cs
- CachedPathData.cs
- PropertyEmitter.cs
- StylusDownEventArgs.cs
- Accessible.cs
- SafeNativeMethods.cs
- VectorValueSerializer.cs
- ParameterToken.cs
- AsmxEndpointPickerExtension.cs
- GetLedgerEntryForRecipientRequest.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- CompiledQuery.cs
- AggregateException.cs
- DbProviderFactoriesConfigurationHandler.cs