Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RequestCache.cs
- KeyConstraint.cs
- DomainUpDown.cs
- tooltip.cs
- ToolStripLabel.cs
- XmlSchemaObject.cs
- TimelineClockCollection.cs
- QilGenerator.cs
- AccessibleObject.cs
- Currency.cs
- listitem.cs
- CompleteWizardStep.cs
- StylusSystemGestureEventArgs.cs
- StaticSiteMapProvider.cs
- GridLength.cs
- ValuePatternIdentifiers.cs
- CapabilitiesSection.cs
- entitydatasourceentitysetnameconverter.cs
- LocationUpdates.cs
- ComboBoxRenderer.cs
- Assign.cs
- TextTreeDeleteContentUndoUnit.cs
- Header.cs
- RankException.cs
- TextDocumentView.cs
- BorderGapMaskConverter.cs
- DictionaryContent.cs
- FormViewUpdatedEventArgs.cs
- PackageDigitalSignatureManager.cs
- CLRBindingWorker.cs
- ExpressionDumper.cs
- XsltContext.cs
- DropSource.cs
- errorpatternmatcher.cs
- Visitors.cs
- sortedlist.cs
- WebPartConnection.cs
- DataObjectPastingEventArgs.cs
- Function.cs
- MatrixAnimationBase.cs
- XmlComplianceUtil.cs
- newinstructionaction.cs
- RegexCode.cs
- BitmapVisualManager.cs
- SourceSwitch.cs
- HttpResponseInternalWrapper.cs
- TTSVoice.cs
- CellNormalizer.cs
- ActivityBuilderHelper.cs
- View.cs
- Event.cs
- SmiRecordBuffer.cs
- AppSettingsExpressionBuilder.cs
- DictionarySectionHandler.cs
- AccessDataSourceView.cs
- ObjectItemAttributeAssemblyLoader.cs
- WebEvents.cs
- DataGridSortCommandEventArgs.cs
- StringSorter.cs
- XmlException.cs
- arclist.cs
- Deserializer.cs
- RIPEMD160Managed.cs
- SchemaInfo.cs
- ManifestResourceInfo.cs
- TableItemStyle.cs
- ipaddressinformationcollection.cs
- TextSpan.cs
- Model3DGroup.cs
- ToolStripItemDataObject.cs
- Package.cs
- StreamInfo.cs
- SslStream.cs
- ConditionValidator.cs
- AdapterUtil.cs
- ListViewItemSelectionChangedEvent.cs
- AutomationProperties.cs
- OdbcPermission.cs
- TickBar.cs
- Int32CAMarshaler.cs
- webeventbuffer.cs
- XmlObjectSerializerContext.cs
- OdbcFactory.cs
- FontSource.cs
- DiagnosticTraceSource.cs
- TabItemWrapperAutomationPeer.cs
- SimpleBitVector32.cs
- CalendarTable.cs
- BufferedStream.cs
- URLEditor.cs
- WebPartExportVerb.cs
- Int16Animation.cs
- WebPartDescription.cs
- WorkflowRuntimeElement.cs
- PointAnimationUsingKeyFrames.cs
- keycontainerpermission.cs
- TextFormatterHost.cs
- Material.cs
- DragAssistanceManager.cs
- SR.cs