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
- CollectionChangeEventArgs.cs
- PropertyInformationCollection.cs
- TreeViewImageIndexConverter.cs
- ComponentResourceKeyConverter.cs
- FormViewUpdatedEventArgs.cs
- TableParaClient.cs
- QueryRewriter.cs
- PaintValueEventArgs.cs
- MsmqAuthenticationMode.cs
- MasterPageCodeDomTreeGenerator.cs
- DataRowCollection.cs
- OracleEncoding.cs
- PackageRelationshipCollection.cs
- PiiTraceSource.cs
- Slider.cs
- OleDbPropertySetGuid.cs
- DiagnosticTraceRecords.cs
- NewItemsContextMenuStrip.cs
- BuildManager.cs
- CodeExpressionCollection.cs
- Literal.cs
- ComplexObject.cs
- Quaternion.cs
- DataSourceHelper.cs
- DoubleConverter.cs
- InstanceDescriptor.cs
- ConfigurationValidatorAttribute.cs
- DetailsView.cs
- GenericTypeParameterBuilder.cs
- CorrelationService.cs
- ProxyHwnd.cs
- Semaphore.cs
- ClientBuildManager.cs
- TemplateParser.cs
- ThousandthOfEmRealPoints.cs
- GAC.cs
- XmlWellformedWriter.cs
- Peer.cs
- MobileCategoryAttribute.cs
- ObjectQueryProvider.cs
- Rect.cs
- Msec.cs
- TextModifier.cs
- CoreSwitches.cs
- ListGeneralPage.cs
- ParameterCollection.cs
- Route.cs
- WebPartEditorCancelVerb.cs
- _FixedSizeReader.cs
- VectorAnimation.cs
- CommonDialog.cs
- SQLByte.cs
- DecoderFallbackWithFailureFlag.cs
- DragCompletedEventArgs.cs
- CodeSpit.cs
- XmlEventCache.cs
- OpenTypeLayoutCache.cs
- InputScope.cs
- CompilationUtil.cs
- ConnectorSelectionGlyph.cs
- XPathBinder.cs
- EnumerableRowCollection.cs
- OdbcEnvironmentHandle.cs
- XmlSchemaChoice.cs
- SafeThreadHandle.cs
- _ScatterGatherBuffers.cs
- ComplexTypeEmitter.cs
- PrintPreviewDialog.cs
- CurrencyWrapper.cs
- FontDifferentiator.cs
- StronglyTypedResourceBuilder.cs
- WsdlInspector.cs
- ManagementEventWatcher.cs
- AttributeUsageAttribute.cs
- JapaneseCalendar.cs
- PolygonHotSpot.cs
- AppDomainProtocolHandler.cs
- CodeValidator.cs
- CustomTypeDescriptor.cs
- SaveFileDialogDesigner.cs
- SoapSchemaMember.cs
- IProducerConsumerCollection.cs
- RefreshEventArgs.cs
- BlobPersonalizationState.cs
- HtmlTableRow.cs
- counter.cs
- BlockCollection.cs
- DatePickerAutomationPeer.cs
- TextRangeAdaptor.cs
- RtfFormatStack.cs
- RuleSetDialog.Designer.cs
- ipaddressinformationcollection.cs
- BitmapEffectInput.cs
- CurrencyWrapper.cs
- IndexingContentUnit.cs
- SqlSelectClauseBuilder.cs
- MenuItemBindingCollection.cs
- WinEventTracker.cs
- WebControlParameterProxy.cs
- TemplatePagerField.cs