Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / TransformDescriptor.cs / 1305600 / TransformDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class TransformDescriptor { private double[] _transform = new double[6]; private uint _size = 0; private KnownTagCache.KnownTagIndex _tag = KnownTagCache.KnownTagIndex.Unknown; public KnownTagCache.KnownTagIndex Tag { get { return _tag; } set { _tag = value; } } public uint Size { get { return _size; } set { _size = value; } } public double[] Transform { get { return _transform; } } public bool Compare(TransformDescriptor that) { if( that.Tag == Tag ) { if( that.Size == _size ) { for( int i = 0; i < _size; i++ ) { if( !DoubleUtil.AreClose(that.Transform[i], _transform[i] )) return false; } return true; } else return false; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class TransformDescriptor { private double[] _transform = new double[6]; private uint _size = 0; private KnownTagCache.KnownTagIndex _tag = KnownTagCache.KnownTagIndex.Unknown; public KnownTagCache.KnownTagIndex Tag { get { return _tag; } set { _tag = value; } } public uint Size { get { return _size; } set { _size = value; } } public double[] Transform { get { return _transform; } } public bool Compare(TransformDescriptor that) { if( that.Tag == Tag ) { if( that.Size == _size ) { for( int i = 0; i < _size; i++ ) { if( !DoubleUtil.AreClose(that.Transform[i], _transform[i] )) return false; } return true; } else return false; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontNamesConverter.cs
- FixedTextView.cs
- TableRow.cs
- ToolStripItem.cs
- SharedDp.cs
- InvalidDataContractException.cs
- SizeConverter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Visual3D.cs
- QueryCacheEntry.cs
- XmlSchemaObjectTable.cs
- ViewManager.cs
- DocumentPageViewAutomationPeer.cs
- COAUTHIDENTITY.cs
- ModelFactory.cs
- Switch.cs
- FontCollection.cs
- PtsHost.cs
- TreePrinter.cs
- OpenTypeCommon.cs
- IncrementalHitTester.cs
- XmlSchemas.cs
- FloaterBaseParaClient.cs
- EventHandlingScope.cs
- TextBoxAutomationPeer.cs
- TextBoxBase.cs
- DataGridViewComponentPropertyGridSite.cs
- IIS7WorkerRequest.cs
- EntityDataSourceContextDisposingEventArgs.cs
- LoadedEvent.cs
- OneWayBindingElementImporter.cs
- PropertySourceInfo.cs
- ScrollBarRenderer.cs
- PageWrapper.cs
- CodeVariableDeclarationStatement.cs
- UniqueEventHelper.cs
- SqlIdentifier.cs
- UserValidatedEventArgs.cs
- OleCmdHelper.cs
- nulltextcontainer.cs
- PointHitTestResult.cs
- EntityContainerEntitySetDefiningQuery.cs
- PriorityBindingExpression.cs
- EllipseGeometry.cs
- BindingNavigator.cs
- Control.cs
- SimpleApplicationHost.cs
- PerformanceCountersBase.cs
- MethodToken.cs
- Sorting.cs
- PartialCachingControl.cs
- GreenMethods.cs
- ButtonDesigner.cs
- SessionPageStatePersister.cs
- TreeChangeInfo.cs
- TypeConverterHelper.cs
- ListCardsInFileRequest.cs
- DataSvcMapFileSerializer.cs
- PeerApplication.cs
- CriticalHandle.cs
- RecommendedAsConfigurableAttribute.cs
- ToolStripHighContrastRenderer.cs
- DeflateStream.cs
- SaveFileDialog.cs
- FixedDocument.cs
- QilPatternVisitor.cs
- ModuleConfigurationInfo.cs
- Mouse.cs
- DataContract.cs
- PrimitiveXmlSerializers.cs
- TripleDESCryptoServiceProvider.cs
- CatalogZone.cs
- SspiHelper.cs
- BaseCollection.cs
- IdentifierService.cs
- WinFormsSecurity.cs
- WebResourceUtil.cs
- XmlC14NWriter.cs
- DataGridViewRowConverter.cs
- MenuItemBindingCollection.cs
- PropertyTab.cs
- UTF32Encoding.cs
- TimelineGroup.cs
- WebContentFormatHelper.cs
- RepeatButtonAutomationPeer.cs
- CacheRequest.cs
- IncrementalCompileAnalyzer.cs
- ExpressionBuilder.cs
- ProbeMatches11.cs
- ObjectSet.cs
- Rotation3DAnimation.cs
- WebPartConnectionsCancelEventArgs.cs
- ThicknessAnimationBase.cs
- XmlEntity.cs
- SelectionUIService.cs
- HashAlgorithm.cs
- ToolBarPanel.cs
- ToolStripDropDownDesigner.cs
- TextAction.cs
- PermissionSetEnumerator.cs