Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TextRunCache.cs
- ShaderEffect.cs
- TaskCanceledException.cs
- IndexerNameAttribute.cs
- SafeFindHandle.cs
- FormViewRow.cs
- AppSecurityManager.cs
- XmlNodeChangedEventManager.cs
- SoundPlayer.cs
- WorkerProcess.cs
- AutoGeneratedField.cs
- SizeConverter.cs
- UIPropertyMetadata.cs
- DictionaryEntry.cs
- WebPartChrome.cs
- AxisAngleRotation3D.cs
- SimpleTypeResolver.cs
- StorageConditionPropertyMapping.cs
- XmlSchemaSet.cs
- NonParentingControl.cs
- Literal.cs
- CollaborationHelperFunctions.cs
- Type.cs
- ObjectStorage.cs
- ReadWriteSpinLock.cs
- GuidTagList.cs
- safelink.cs
- ColorAnimationBase.cs
- ParserHooks.cs
- AppearanceEditorPart.cs
- XmlSchemaSimpleContentExtension.cs
- WindowClosedEventArgs.cs
- EdmPropertyAttribute.cs
- GridSplitterAutomationPeer.cs
- XmlMapping.cs
- ProcessModelInfo.cs
- DataGridViewElement.cs
- HelpKeywordAttribute.cs
- FontFamilyConverter.cs
- ConnectionPoint.cs
- ActivityExecutorDelegateInfo.cs
- Component.cs
- MobileResource.cs
- NavigationPropertyEmitter.cs
- DrawListViewSubItemEventArgs.cs
- GridErrorDlg.cs
- CreateUserWizardStep.cs
- CompoundFileStorageReference.cs
- XamlTemplateSerializer.cs
- DropDownList.cs
- AspNetSynchronizationContext.cs
- IList.cs
- ConfigXmlSignificantWhitespace.cs
- DbModificationClause.cs
- MarkupExtensionParser.cs
- TreeNodeStyleCollectionEditor.cs
- OptimizerPatterns.cs
- WinFormsComponentEditor.cs
- SearchForVirtualItemEventArgs.cs
- HyperLinkStyle.cs
- CanonicalXml.cs
- AspNetCompatibilityRequirementsMode.cs
- httpstaticobjectscollection.cs
- DataServiceException.cs
- DeclaredTypeValidator.cs
- ComponentResourceKeyConverter.cs
- ServiceElement.cs
- NullReferenceException.cs
- DisplayInformation.cs
- baseshape.cs
- DropSourceBehavior.cs
- Menu.cs
- Hashtable.cs
- Opcode.cs
- DeclarativeCatalogPart.cs
- BezierSegment.cs
- HttpValueCollection.cs
- ReflectionServiceProvider.cs
- SQLUtility.cs
- RetrieveVirtualItemEventArgs.cs
- XmlHelper.cs
- KnownBoxes.cs
- diagnosticsswitches.cs
- XmlSerializationWriter.cs
- ControlBuilderAttribute.cs
- ConvertTextFrag.cs
- UnhandledExceptionEventArgs.cs
- RPIdentityRequirement.cs
- Utility.cs
- CompilerGlobalScopeAttribute.cs
- IncrementalReadDecoders.cs
- LinqDataSourceSelectEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- FragmentNavigationEventArgs.cs
- XmlValidatingReader.cs
- InstanceHandle.cs
- QueryGeneratorBase.cs
- DeferredElementTreeState.cs
- XhtmlBasicCommandAdapter.cs
- SoapHeader.cs