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
- TrustLevelCollection.cs
- CryptoHelper.cs
- WindowsGraphicsWrapper.cs
- HMACSHA384.cs
- BackStopAuthenticationModule.cs
- SqlCommand.cs
- RegexCode.cs
- X509ServiceCertificateAuthentication.cs
- ConfigurationManager.cs
- Int64KeyFrameCollection.cs
- WebPartTransformerAttribute.cs
- EntityCommandExecutionException.cs
- SmtpDigestAuthenticationModule.cs
- MultiTargetingUtil.cs
- AsyncCompletedEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- AuthenticationManager.cs
- filewebresponse.cs
- PropertyConverter.cs
- HwndHostAutomationPeer.cs
- DesignTimeParseData.cs
- ProcessHostFactoryHelper.cs
- IndicShape.cs
- FormViewInsertEventArgs.cs
- UrlPropertyAttribute.cs
- MimeParameters.cs
- Pool.cs
- SiteMapNodeCollection.cs
- DataSetUtil.cs
- MediaSystem.cs
- EmptyControlCollection.cs
- ServiceManagerHandle.cs
- FontStretches.cs
- ScriptBehaviorDescriptor.cs
- MappingException.cs
- ButtonChrome.cs
- CustomWebEventKey.cs
- AccessedThroughPropertyAttribute.cs
- InkCanvasAutomationPeer.cs
- DataGridViewLinkCell.cs
- MarginCollapsingState.cs
- Calendar.cs
- CommandArguments.cs
- HTMLTagNameToTypeMapper.cs
- DateTimeFormat.cs
- ServicePrincipalNameElement.cs
- ChangeBlockUndoRecord.cs
- DefaultDialogButtons.cs
- SplitterPanel.cs
- ContentPathSegment.cs
- HttpConfigurationContext.cs
- FrameworkElementAutomationPeer.cs
- TextTreeFixupNode.cs
- ButtonColumn.cs
- TextEditorCharacters.cs
- TextDecorationUnitValidation.cs
- SSmlParser.cs
- CrossContextChannel.cs
- OleDbSchemaGuid.cs
- ContextProperty.cs
- FixedSOMFixedBlock.cs
- TreeViewImageKeyConverter.cs
- CodeSubDirectory.cs
- GlyphInfoList.cs
- CacheAxisQuery.cs
- WebPartRestoreVerb.cs
- TextBox.cs
- EntitySqlException.cs
- WorkflowLayouts.cs
- LockCookie.cs
- ChannelManager.cs
- RestHandlerFactory.cs
- DeclarativeExpressionConditionDeclaration.cs
- DataGridState.cs
- DocumentGridPage.cs
- TimeIntervalCollection.cs
- DataGridParentRows.cs
- Attributes.cs
- DesignParameter.cs
- HttpResponseHeader.cs
- XhtmlBasicCommandAdapter.cs
- SystemIPInterfaceStatistics.cs
- ChannelTerminatedException.cs
- QilName.cs
- SetStateEventArgs.cs
- XAMLParseException.cs
- BlurBitmapEffect.cs
- ToolStripDropDownItem.cs
- CacheMemory.cs
- DataGridViewBand.cs
- ISAPIRuntime.cs
- GridPattern.cs
- OutputScopeManager.cs
- Oid.cs
- DictionarySurrogate.cs
- altserialization.cs
- DrawingContextWalker.cs
- ProxyFragment.cs
- BinaryMessageEncoder.cs
- HandlerElement.cs