Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- EntityUtil.cs
- DefaultCompensation.cs
- JsonReader.cs
- EntityDataSourceChangingEventArgs.cs
- ReadOnlyAttribute.cs
- BamlResourceDeserializer.cs
- GridViewColumnHeader.cs
- _AuthenticationState.cs
- ComplexType.cs
- DataMemberAttribute.cs
- CompositeActivityMarkupSerializer.cs
- Terminate.cs
- DataDesignUtil.cs
- SiteMapNodeCollection.cs
- ListView.cs
- CalendarTable.cs
- DecoderReplacementFallback.cs
- DrawToolTipEventArgs.cs
- JapaneseLunisolarCalendar.cs
- SecureEnvironment.cs
- SoundPlayer.cs
- SortKey.cs
- BindingObserver.cs
- MouseEventArgs.cs
- RightsManagementInformation.cs
- ArrayExtension.cs
- Run.cs
- EntityViewContainer.cs
- ListManagerBindingsCollection.cs
- PropertyGridCommands.cs
- CodeGroup.cs
- configsystem.cs
- FlowDecisionDesigner.xaml.cs
- Tool.cs
- DesignerDataStoredProcedure.cs
- PermissionListSet.cs
- JavaScriptSerializer.cs
- QueryParameter.cs
- FormatVersion.cs
- TableRowGroup.cs
- XmlDocumentFragment.cs
- InputReport.cs
- GridSplitterAutomationPeer.cs
- ValueUnavailableException.cs
- OrderingQueryOperator.cs
- MsmqIntegrationSecurity.cs
- RowToParametersTransformer.cs
- PartDesigner.cs
- PrinterSettings.cs
- XXXOnTypeBuilderInstantiation.cs
- SystemResources.cs
- ObjectListComponentEditor.cs
- TreeViewBindingsEditor.cs
- UIntPtr.cs
- CompModSwitches.cs
- SchemaNames.cs
- TextBoxDesigner.cs
- StylusButtonCollection.cs
- InternalCache.cs
- ListSortDescriptionCollection.cs
- ListSourceHelper.cs
- ScriptBehaviorDescriptor.cs
- Module.cs
- DataBindingCollectionEditor.cs
- PersonalizationStateInfoCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- ChannelEndpointElementCollection.cs
- ButtonAutomationPeer.cs
- HorizontalAlignConverter.cs
- TypeInitializationException.cs
- MouseEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs
- StringBlob.cs
- XmlFormatWriterGenerator.cs
- _HeaderInfoTable.cs
- SchemaCollectionCompiler.cs
- ServiceReference.cs
- _ProxyChain.cs
- SqlTypesSchemaImporter.cs
- SqlDataSourceStatusEventArgs.cs
- RegionIterator.cs
- SecurityElement.cs
- StorageConditionPropertyMapping.cs
- PageThemeParser.cs
- DataGridParentRows.cs
- SessionStateContainer.cs
- QuaternionAnimationUsingKeyFrames.cs
- HtmlInputButton.cs
- PreviewKeyDownEventArgs.cs
- CompositeFontParser.cs
- SqlInfoMessageEvent.cs
- RuleSetDialog.cs
- Publisher.cs
- MappedMetaModel.cs
- WindowsFormsHelpers.cs
- ActivityWithResultValueSerializer.cs
- NativeMethods.cs
- PeerCollaborationPermission.cs
- ContactManager.cs
- WmlTextViewAdapter.cs