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
- XamlTreeBuilderBamlRecordWriter.cs
- ContentPosition.cs
- XPathPatternParser.cs
- SchemaDeclBase.cs
- HttpConfigurationSystem.cs
- RealizationDrawingContextWalker.cs
- VectorCollectionValueSerializer.cs
- SafeFindHandle.cs
- MessageBuffer.cs
- _AutoWebProxyScriptEngine.cs
- Form.cs
- XmlSchemaDatatype.cs
- XmlNavigatorStack.cs
- FilterFactory.cs
- BounceEase.cs
- XmlSubtreeReader.cs
- SendActivityDesignerTheme.cs
- IsolationInterop.cs
- LifetimeServices.cs
- SiteOfOriginContainer.cs
- ListBoxItemWrapperAutomationPeer.cs
- EntityDataSourceEntityTypeFilterItem.cs
- Transform.cs
- TemplateBaseAction.cs
- DataBindingCollection.cs
- Function.cs
- CalendarDayButton.cs
- XPathSelfQuery.cs
- WorkflowViewManager.cs
- CheckBoxAutomationPeer.cs
- FormViewUpdatedEventArgs.cs
- WebPartConnectVerb.cs
- ApplicationServiceHelper.cs
- remotingproxy.cs
- AnimationLayer.cs
- LocalizableAttribute.cs
- MessageVersionConverter.cs
- FontDialog.cs
- ImageList.cs
- ApplicationDirectory.cs
- EnumBuilder.cs
- DataTableCollection.cs
- XmlSchemaAttributeGroup.cs
- SerializationObjectManager.cs
- SetterTriggerConditionValueConverter.cs
- SerializationUtility.cs
- ControlPaint.cs
- EncryptedData.cs
- BindingExpressionUncommonField.cs
- SmiSettersStream.cs
- M3DUtil.cs
- Animatable.cs
- ObjectDataSource.cs
- CompressEmulationStream.cs
- _CacheStreams.cs
- RijndaelManaged.cs
- Convert.cs
- ListDesigner.cs
- XPathAxisIterator.cs
- IconBitmapDecoder.cs
- XhtmlBasicPageAdapter.cs
- WsdlHelpGeneratorElement.cs
- Line.cs
- SourceFileBuildProvider.cs
- TextServicesPropertyRanges.cs
- ListParagraph.cs
- SqlDataSourceStatusEventArgs.cs
- SpAudioStreamWrapper.cs
- KeyMatchBuilder.cs
- CategoryAttribute.cs
- UnsafeNetInfoNativeMethods.cs
- __Error.cs
- CssStyleCollection.cs
- XmlDataSource.cs
- DesignerCommandAdapter.cs
- EnumCodeDomSerializer.cs
- ObjectTag.cs
- __Filters.cs
- DataGridViewHitTestInfo.cs
- IndexerNameAttribute.cs
- SymLanguageVendor.cs
- ZipPackagePart.cs
- Socket.cs
- FilterElement.cs
- PolyBezierSegmentFigureLogic.cs
- Matrix.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- CompositeControl.cs
- SchemaNames.cs
- XsltException.cs
- TextWriter.cs
- DocumentXPathNavigator.cs
- OutputCacheProviderCollection.cs
- AsyncOperation.cs
- FillErrorEventArgs.cs
- MissingManifestResourceException.cs
- UInt64Converter.cs
- DataGridViewRowsAddedEventArgs.cs
- SetIterators.cs
- sqlinternaltransaction.cs