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
- UIElementAutomationPeer.cs
- ZipIOModeEnforcingStream.cs
- WindowsGraphicsCacheManager.cs
- DataSourceBooleanViewSchemaConverter.cs
- FixedTextPointer.cs
- XhtmlTextWriter.cs
- NoneExcludedImageIndexConverter.cs
- SystemFonts.cs
- DataSourceConverter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- StrokeDescriptor.cs
- JapaneseCalendar.cs
- CryptoApi.cs
- PipeSecurity.cs
- Path.cs
- CancellationToken.cs
- WmlObjectListAdapter.cs
- MsmqMessageProperty.cs
- XmlSchemaIdentityConstraint.cs
- PtsContext.cs
- CustomCredentialPolicy.cs
- RecordConverter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MatrixTransform.cs
- XmlDictionaryReader.cs
- SqlBooleanMismatchVisitor.cs
- AutomationAttributeInfo.cs
- BindingMAnagerBase.cs
- Point4DValueSerializer.cs
- InvokeGenerator.cs
- SqlRowUpdatedEvent.cs
- RepeatInfo.cs
- AttributeXamlType.cs
- DBConcurrencyException.cs
- DebugView.cs
- XmlSchemaObject.cs
- EventLogRecord.cs
- WebPartVerb.cs
- XmlSchemaInferenceException.cs
- SourceFilter.cs
- EventSourceCreationData.cs
- SHA512Managed.cs
- DrawingVisualDrawingContext.cs
- configsystem.cs
- SplayTreeNode.cs
- OLEDB_Enum.cs
- HttpBrowserCapabilitiesWrapper.cs
- PackWebResponse.cs
- FamilyTypeface.cs
- PenLineCapValidation.cs
- UniqueIdentifierService.cs
- PropertyAccessVisitor.cs
- AssemblyAttributes.cs
- QilReplaceVisitor.cs
- CollectionType.cs
- XmlSchemaAttribute.cs
- XmlMapping.cs
- DecoratedNameAttribute.cs
- SettingsBindableAttribute.cs
- SHA256CryptoServiceProvider.cs
- StubHelpers.cs
- InternalUserCancelledException.cs
- GradientBrush.cs
- XsltContext.cs
- RowParagraph.cs
- DynamicRendererThreadManager.cs
- SecUtil.cs
- ComponentCommands.cs
- XmlPreloadedResolver.cs
- DetailsViewInsertEventArgs.cs
- PageThemeBuildProvider.cs
- PackageDigitalSignatureManager.cs
- OrderingInfo.cs
- ReliableSession.cs
- TypeConverter.cs
- SignatureResourcePool.cs
- SafeFindHandle.cs
- StringAttributeCollection.cs
- FormsAuthenticationUser.cs
- SoapHeaderException.cs
- DataPagerFieldItem.cs
- SqlNode.cs
- ParamArrayAttribute.cs
- IfAction.cs
- LayoutEngine.cs
- RtfFormatStack.cs
- LinkArea.cs
- FocusChangedEventArgs.cs
- CharacterBuffer.cs
- SimpleTypeResolver.cs
- processwaithandle.cs
- TemplateAction.cs
- WorkflowOwnershipException.cs
- ISFTagAndGuidCache.cs
- ObjectView.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- OleDbCommand.cs
- DataGridViewColumnConverter.cs
- DynamicEndpoint.cs
- TypedMessageConverter.cs