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
- WebBrowserUriTypeConverter.cs
- TemplateBaseAction.cs
- Query.cs
- XPathAxisIterator.cs
- HttpListenerResponse.cs
- Pen.cs
- TransformerInfoCollection.cs
- XmlFileEditor.cs
- WebCategoryAttribute.cs
- _LazyAsyncResult.cs
- TextTrailingWordEllipsis.cs
- FormViewUpdatedEventArgs.cs
- oledbmetadatacollectionnames.cs
- DiffuseMaterial.cs
- ValidationService.cs
- AccessViolationException.cs
- IdentitySection.cs
- SkewTransform.cs
- PopupEventArgs.cs
- EntityClientCacheEntry.cs
- MetadataArtifactLoaderCompositeFile.cs
- FontStyles.cs
- DefinitionUpdate.cs
- DashStyles.cs
- OpenFileDialog.cs
- EntityCommand.cs
- XPathDescendantIterator.cs
- StylusOverProperty.cs
- ResourceWriter.cs
- WebServiceEnumData.cs
- AbandonedMutexException.cs
- basevalidator.cs
- SoapAttributes.cs
- WithStatement.cs
- DataSpaceManager.cs
- StreamFormatter.cs
- TextSelectionProcessor.cs
- DisplayMemberTemplateSelector.cs
- ButtonFieldBase.cs
- ToolStripPanelCell.cs
- NameValuePair.cs
- CompositeControl.cs
- ProfilePropertyMetadata.cs
- SemaphoreFullException.cs
- GeneratedView.cs
- HtmlShim.cs
- OracleMonthSpan.cs
- EncoderFallback.cs
- ManifestResourceInfo.cs
- FontStyle.cs
- SqlBulkCopyColumnMapping.cs
- FactoryId.cs
- XamlGridLengthSerializer.cs
- LinqExpressionNormalizer.cs
- TypedColumnHandler.cs
- SwitchLevelAttribute.cs
- DataProviderNameConverter.cs
- EntityViewContainer.cs
- XmlQueryStaticData.cs
- TableRowCollection.cs
- SEHException.cs
- LiteralDesigner.cs
- TextEncodedRawTextWriter.cs
- XomlCompiler.cs
- MatrixValueSerializer.cs
- Utils.cs
- TagMapInfo.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- WithParamAction.cs
- ConnectionOrientedTransportChannelListener.cs
- Win32SafeHandles.cs
- RuleSettingsCollection.cs
- AssemblyInfo.cs
- DataGridViewColumnStateChangedEventArgs.cs
- precedingsibling.cs
- Events.cs
- QilXmlReader.cs
- MarkupCompiler.cs
- WorkerRequest.cs
- Membership.cs
- ListComponentEditorPage.cs
- NamespaceInfo.cs
- PipeStream.cs
- CompiledQuery.cs
- SafeFindHandle.cs
- SimpleApplicationHost.cs
- EncryptedType.cs
- CodeMethodInvokeExpression.cs
- Padding.cs
- SqlInternalConnection.cs
- FixedBufferAttribute.cs
- DbDataReader.cs
- FileRegion.cs
- CodeGenHelper.cs
- VariableAction.cs
- SpotLight.cs
- CriticalExceptions.cs
- SqlRetyper.cs
- BigIntegerStorage.cs
- Crc32Helper.cs