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
- ViewBox.cs
- FormsAuthenticationUserCollection.cs
- OperatingSystemVersionCheck.cs
- XmlSchemas.cs
- GeneralTransform.cs
- ZipIOExtraFieldElement.cs
- EventEntry.cs
- OrderablePartitioner.cs
- DataColumnMapping.cs
- UInt64Converter.cs
- PrimitiveXmlSerializers.cs
- FileBasedResourceGroveler.cs
- NullableDoubleSumAggregationOperator.cs
- safesecurityhelperavalon.cs
- DesignerTransactionCloseEvent.cs
- TrackingMemoryStreamFactory.cs
- DataGridState.cs
- XmlSchemaSearchPattern.cs
- StagingAreaInputItem.cs
- Point.cs
- XmlAggregates.cs
- CodeTypeReferenceSerializer.cs
- InputMethodStateChangeEventArgs.cs
- DbMetaDataCollectionNames.cs
- CheckBox.cs
- SingleKeyFrameCollection.cs
- PropertyTabChangedEvent.cs
- SoapCommonClasses.cs
- ObjectManager.cs
- MediaElementAutomationPeer.cs
- ContentPresenter.cs
- OleDbRowUpdatedEvent.cs
- Encoder.cs
- AssemblyBuilder.cs
- ParameterBuilder.cs
- RegexFCD.cs
- ImagingCache.cs
- PathParser.cs
- TraceRecord.cs
- DeviceOverridableAttribute.cs
- JoinCqlBlock.cs
- handlecollector.cs
- XPathSelfQuery.cs
- ParagraphResult.cs
- QueryExtender.cs
- HitTestDrawingContextWalker.cs
- ObjectStorage.cs
- OracleBinary.cs
- ChangePasswordAutoFormat.cs
- AssociatedControlConverter.cs
- ComplexLine.cs
- StateChangeEvent.cs
- CurrencyWrapper.cs
- PropertyEmitter.cs
- ObjectDataSourceMethodEventArgs.cs
- AuthenticatingEventArgs.cs
- DataGridViewBand.cs
- SecurityDescriptor.cs
- DataBindingList.cs
- MostlySingletonList.cs
- ObservableDictionary.cs
- EntityCommand.cs
- BaseDataBoundControl.cs
- DiscoveryMessageProperty.cs
- AdjustableArrowCap.cs
- FixedPosition.cs
- MessageQueueEnumerator.cs
- DataBoundControlHelper.cs
- SHA256CryptoServiceProvider.cs
- FontUnit.cs
- RedBlackList.cs
- UnsafePeerToPeerMethods.cs
- EventSchemaTraceListener.cs
- SocketException.cs
- SqlParameterizer.cs
- AssemblyAttributesGoHere.cs
- HttpRequestCacheValidator.cs
- DispatcherHooks.cs
- FormParameter.cs
- SqlConnectionPoolProviderInfo.cs
- DesignerTransactionCloseEvent.cs
- QueryParameter.cs
- PropertyKey.cs
- RichTextBoxConstants.cs
- SqlProviderServices.cs
- SqlMethodAttribute.cs
- PersonalizationProvider.cs
- PathGeometry.cs
- HttpException.cs
- SafeBitVector32.cs
- PasswordRecovery.cs
- OperationAbortedException.cs
- PageAsyncTaskManager.cs
- GenericTypeParameterConverter.cs
- StrongNamePublicKeyBlob.cs
- FixedFindEngine.cs
- TryLoadRunnableWorkflowCommand.cs
- RuleConditionDialog.Designer.cs
- BinaryMessageFormatter.cs
- DataRowChangeEvent.cs