Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / TransformDescriptor.cs / 1 / 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
- Pkcs9Attribute.cs
- PreservationFileReader.cs
- MethodInfo.cs
- Vertex.cs
- TabPage.cs
- SimpleHandlerBuildProvider.cs
- DesigntimeLicenseContext.cs
- SafeNativeMethods.cs
- TableLayoutRowStyleCollection.cs
- CAGDesigner.cs
- SelectionProviderWrapper.cs
- UserControlParser.cs
- NativeRecognizer.cs
- EnumerableCollectionView.cs
- ProcessHost.cs
- SchemaTableColumn.cs
- ClientSideQueueItem.cs
- Rule.cs
- HttpModuleActionCollection.cs
- XmlDownloadManager.cs
- UTF8Encoding.cs
- IncrementalReadDecoders.cs
- RequiredAttributeAttribute.cs
- UpdatableWrapper.cs
- Int64Storage.cs
- XpsPackagingException.cs
- CharacterHit.cs
- XmlAttributeAttribute.cs
- ValuePattern.cs
- RotateTransform.cs
- EncoderParameter.cs
- TemplatedAdorner.cs
- WebUtil.cs
- WebSysDescriptionAttribute.cs
- XmlReaderSettings.cs
- Model3D.cs
- ControlFilterExpression.cs
- BadImageFormatException.cs
- PasswordRecovery.cs
- DeclaredTypeElementCollection.cs
- VirtualPath.cs
- DbDeleteCommandTree.cs
- ellipse.cs
- TextParagraphProperties.cs
- MetaChildrenColumn.cs
- Token.cs
- ResourceReferenceExpression.cs
- CacheVirtualItemsEvent.cs
- Label.cs
- ForeignKeyConstraint.cs
- DomainUpDown.cs
- Button.cs
- SiteMembershipCondition.cs
- UnknownBitmapDecoder.cs
- RequiredFieldValidator.cs
- HintTextMaxWidthConverter.cs
- ParallelDesigner.cs
- PrinterResolution.cs
- HtmlInputFile.cs
- NullRuntimeConfig.cs
- AnalyzedTree.cs
- WebEvents.cs
- TagPrefixInfo.cs
- CodeDOMUtility.cs
- XmlSchemaChoice.cs
- BeginStoryboard.cs
- EntityDataSourceDataSelection.cs
- _TLSstream.cs
- MediaPlayerState.cs
- XmlDocumentFieldSchema.cs
- OleDbDataAdapter.cs
- PenThread.cs
- ApplicationSecurityInfo.cs
- DataQuery.cs
- BooleanExpr.cs
- validationstate.cs
- embossbitmapeffect.cs
- ListViewItemEventArgs.cs
- DesignerRegion.cs
- SourceFileInfo.cs
- URLString.cs
- UpdateException.cs
- IntegerValidatorAttribute.cs
- _NestedMultipleAsyncResult.cs
- ScalarConstant.cs
- EmbeddedMailObject.cs
- SqlProfileProvider.cs
- XmlCDATASection.cs
- UndoUnit.cs
- unsafeIndexingFilterStream.cs
- DataBoundLiteralControl.cs
- NaturalLanguageHyphenator.cs
- StringValueSerializer.cs
- TableProviderWrapper.cs
- MailFileEditor.cs
- BaseParaClient.cs
- ObjectIDGenerator.cs
- IntellisenseTextBox.cs
- WindowHideOrCloseTracker.cs
- SimpleExpression.cs