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
- WindowsSysHeader.cs
- XsltLibrary.cs
- Timer.cs
- AnonymousIdentificationSection.cs
- ThemeDictionaryExtension.cs
- CommonDialog.cs
- TextBox.cs
- XmlILAnnotation.cs
- BooleanFunctions.cs
- StandardTransformFactory.cs
- RankException.cs
- BitmapMetadata.cs
- AncestorChangedEventArgs.cs
- FigureParagraph.cs
- CacheForPrimitiveTypes.cs
- ProfessionalColorTable.cs
- DocumentOrderQuery.cs
- PhysicalOps.cs
- HttpClientChannel.cs
- _TransmitFileOverlappedAsyncResult.cs
- SecurityException.cs
- Privilege.cs
- safePerfProviderHandle.cs
- MarkupExtensionSerializer.cs
- ISO2022Encoding.cs
- RuntimeResourceSet.cs
- WorkflowElementDialog.cs
- Matrix3DStack.cs
- AttributeUsageAttribute.cs
- BitmapMetadataEnumerator.cs
- RegexCharClass.cs
- CachedTypeface.cs
- GeometryDrawing.cs
- BuildManager.cs
- MailDefinition.cs
- TimeSpanValidatorAttribute.cs
- TemplatedWizardStep.cs
- FileSystemInfo.cs
- SystemInfo.cs
- BookmarkOptionsHelper.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- DynamicRendererThreadManager.cs
- KeyInterop.cs
- NullReferenceException.cs
- XmlSchemaIdentityConstraint.cs
- EmptyQuery.cs
- MailWebEventProvider.cs
- CodeMethodInvokeExpression.cs
- DataFieldCollectionEditor.cs
- XPathMultyIterator.cs
- XmlSerializerAssemblyAttribute.cs
- MsmqIntegrationBindingElement.cs
- PngBitmapDecoder.cs
- XmlAnyElementAttribute.cs
- SerialPinChanges.cs
- DataControlLinkButton.cs
- EntityContainerRelationshipSetEnd.cs
- NumberSubstitution.cs
- NativeMethods.cs
- FormViewRow.cs
- PermissionSet.cs
- DateTime.cs
- DetailsViewModeEventArgs.cs
- PrivateFontCollection.cs
- XhtmlBasicValidationSummaryAdapter.cs
- PassportAuthentication.cs
- Command.cs
- HtmlEncodedRawTextWriter.cs
- Label.cs
- DataControlPagerLinkButton.cs
- Frame.cs
- XmlBaseWriter.cs
- Point3DKeyFrameCollection.cs
- Error.cs
- ConnectivityStatus.cs
- ServiceRoute.cs
- Condition.cs
- EncoderParameters.cs
- WebRequest.cs
- CommentEmitter.cs
- RandomNumberGenerator.cs
- HtmlTableCellCollection.cs
- DefaultPrintController.cs
- SocketInformation.cs
- RotationValidation.cs
- RelationalExpressions.cs
- Size3DConverter.cs
- ParameterCollection.cs
- ElementNotAvailableException.cs
- ExceptionUtil.cs
- BasePattern.cs
- FrameAutomationPeer.cs
- SkipStoryboardToFill.cs
- EntryPointNotFoundException.cs
- AttributeEmitter.cs
- IPAddressCollection.cs
- Logging.cs
- MemberDescriptor.cs
- SchemaTableColumn.cs
- PrintingPermission.cs