Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / TransformDescriptor.cs / 1305600 / 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
- documentation.cs
- EndpointConfigContainer.cs
- SqlDataSourceSelectingEventArgs.cs
- DataGridViewImageColumn.cs
- PresentationSource.cs
- HttpCookie.cs
- CodePrimitiveExpression.cs
- listitem.cs
- ButtonAutomationPeer.cs
- DeploymentSection.cs
- RectKeyFrameCollection.cs
- CLRBindingWorker.cs
- DeflateEmulationStream.cs
- EmptyStringExpandableObjectConverter.cs
- PolicyStatement.cs
- SortQuery.cs
- TextCompositionManager.cs
- Int32RectValueSerializer.cs
- ComPlusThreadInitializer.cs
- IPipelineRuntime.cs
- MappingSource.cs
- UnicodeEncoding.cs
- SetIterators.cs
- NameObjectCollectionBase.cs
- XmlDataSourceView.cs
- webeventbuffer.cs
- QueryOperationResponseOfT.cs
- DelegatedStream.cs
- ServiceOperationWrapper.cs
- PrivilegeNotHeldException.cs
- DbXmlEnabledProviderManifest.cs
- Version.cs
- UInt16Storage.cs
- Triplet.cs
- ListBase.cs
- TabControlToolboxItem.cs
- QilParameter.cs
- Menu.cs
- SqlConnectionStringBuilder.cs
- BaseTreeIterator.cs
- OptimalBreakSession.cs
- StateRuntime.cs
- FileRecordSequenceCompletedAsyncResult.cs
- PolicyManager.cs
- AudioFormatConverter.cs
- DataGridViewSelectedRowCollection.cs
- wgx_exports.cs
- FilteredXmlReader.cs
- OAVariantLib.cs
- HttpClientCertificate.cs
- WebServiceFaultDesigner.cs
- FormsAuthenticationCredentials.cs
- Semaphore.cs
- SafeRightsManagementHandle.cs
- SettingsPropertyIsReadOnlyException.cs
- TableProviderWrapper.cs
- DependencyPropertyChangedEventArgs.cs
- EntityDesignerBuildProvider.cs
- UrlMapping.cs
- RotationValidation.cs
- HashAlgorithm.cs
- MenuRendererStandards.cs
- SqlInternalConnectionTds.cs
- CheckBox.cs
- IisTraceWebEventProvider.cs
- _NativeSSPI.cs
- WebPartVerbCollection.cs
- DataGridAutomationPeer.cs
- EmptyEnumerable.cs
- DataConnectionHelper.cs
- ZoneButton.cs
- WebBrowserProgressChangedEventHandler.cs
- ServiceOperationListItem.cs
- FileNotFoundException.cs
- HttpInputStream.cs
- StylusShape.cs
- InputBindingCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- CodeTypeDelegate.cs
- SplitterCancelEvent.cs
- QuestionEventArgs.cs
- Help.cs
- ActivitySurrogate.cs
- KeyGestureConverter.cs
- xml.cs
- DataGridViewElement.cs
- DispatcherOperation.cs
- HttpContext.cs
- DirectionalLight.cs
- EmptyEnumerator.cs
- CharacterShapingProperties.cs
- GrammarBuilderDictation.cs
- PropertyChangedEventArgs.cs
- WindowsProgressbar.cs
- ComPlusInstanceProvider.cs
- serverconfig.cs
- NamedPipeWorkerProcess.cs
- DataGridState.cs
- DataGridHeaderBorder.cs
- TraceLevelStore.cs