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
- PrinterResolution.cs
- XmlTextReaderImplHelpers.cs
- ArrayWithOffset.cs
- DataMisalignedException.cs
- FileDialog_Vista_Interop.cs
- Catch.cs
- GridItem.cs
- StorageConditionPropertyMapping.cs
- TableLayoutCellPaintEventArgs.cs
- SiteMapNodeItemEventArgs.cs
- CallbackException.cs
- DbQueryCommandTree.cs
- DecoderNLS.cs
- WebServiceParameterData.cs
- BuildDependencySet.cs
- TreeNode.cs
- RecognitionEventArgs.cs
- MobileResource.cs
- ReflectionHelper.cs
- typedescriptorpermission.cs
- ICollection.cs
- cryptoapiTransform.cs
- ParameterElementCollection.cs
- OciLobLocator.cs
- PermissionRequestEvidence.cs
- Sentence.cs
- AspProxy.cs
- EventHandlersStore.cs
- VirtualPathUtility.cs
- SecurityContext.cs
- MissingMethodException.cs
- PingReply.cs
- ModelVisual3D.cs
- X509Certificate2Collection.cs
- XmlCDATASection.cs
- SoapMessage.cs
- IdentityValidationException.cs
- VolatileResourceManager.cs
- SqlDataSourceSelectingEventArgs.cs
- WebPartActionVerb.cs
- DifferencingCollection.cs
- AnnotationHighlightLayer.cs
- ClipboardProcessor.cs
- DesignTimeData.cs
- Header.cs
- x509utils.cs
- TreeNodeStyle.cs
- CompositeActivityTypeDescriptorProvider.cs
- AssociationType.cs
- EventLogQuery.cs
- XmlSchemaAttribute.cs
- PerformanceCounterTraceRecord.cs
- AlgoModule.cs
- NonVisualControlAttribute.cs
- FeatureAttribute.cs
- RangeValuePatternIdentifiers.cs
- SymDocumentType.cs
- SerializationSectionGroup.cs
- MDIControlStrip.cs
- arabicshape.cs
- CodeValidator.cs
- XmlToDatasetMap.cs
- MethodToken.cs
- TypeUsage.cs
- XsltLoader.cs
- SeverityFilter.cs
- ToolStripRenderer.cs
- InputBinder.cs
- ComplexTypeEmitter.cs
- TextPointerBase.cs
- DataSourceCacheDurationConverter.cs
- ContainerUtilities.cs
- AdRotator.cs
- UnlockCardRequest.cs
- ViewGenerator.cs
- SrgsItemList.cs
- latinshape.cs
- LambdaCompiler.cs
- MustUnderstandBehavior.cs
- CustomCategoryAttribute.cs
- StorageAssociationSetMapping.cs
- CodeTypeParameter.cs
- SortDescriptionCollection.cs
- SessionStateSection.cs
- ReadOnlyHierarchicalDataSource.cs
- TableRowCollection.cs
- XmlNodeChangedEventArgs.cs
- FaultPropagationRecord.cs
- ExtensionMethods.cs
- Grammar.cs
- FigureHelper.cs
- CodeThrowExceptionStatement.cs
- objectresult_tresulttype.cs
- TransformerInfoCollection.cs
- EdmSchemaAttribute.cs
- ReflectPropertyDescriptor.cs
- DataGridViewColumnCollection.cs
- ComplexTypeEmitter.cs
- BoundsDrawingContextWalker.cs
- AutomationPatternInfo.cs