Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / Ray3DHitTestResult.cs / 1 / Ray3DHitTestResult.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // History: // 06/22/2005 : [....] - Integrated from RayHitTestResult. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace System.Windows.Media.Media3D { ////// The HitTestResult of a Visual3D.HitTest(...) where the parameter /// was a RayHitTestParameter. /// /// NOTE: This might have originated as a PointHitTest on a 2D Visual /// which was extended into 3D. /// public abstract class RayHitTestResult : HitTestResult { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) { _modelHit = modelHit; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- ////// Re-expose Visual property strongly typed to Visual3D. /// public new Visual3D VisualHit { get { return (Visual3D) base.VisualHit; } } ////// The Model3D intersected by the ray. /// public Model3D ModelHit { get { return _modelHit; } } ////// This is a point in 3-space at which the ray intersected /// the geometry of the hit Model3D. This point is in the /// local coordinate system of the Model3D. /// public abstract Point3D PointHit { get; } ////// This is the distance between the ray's origin and the /// point hit. /// public abstract double DistanceToRayOrigin { get; } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- internal abstract void SetDistanceToRayOrigin(double distance); internal static int CompareByDistanceToRayOrigin(RayHitTestResult x, RayHitTestResult y) { return Math.Sign(x.DistanceToRayOrigin - y.DistanceToRayOrigin); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private readonly Model3D _modelHit; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // History: // 06/22/2005 : [....] - Integrated from RayHitTestResult. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace System.Windows.Media.Media3D { ////// The HitTestResult of a Visual3D.HitTest(...) where the parameter /// was a RayHitTestParameter. /// /// NOTE: This might have originated as a PointHitTest on a 2D Visual /// which was extended into 3D. /// public abstract class RayHitTestResult : HitTestResult { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) { _modelHit = modelHit; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- ////// Re-expose Visual property strongly typed to Visual3D. /// public new Visual3D VisualHit { get { return (Visual3D) base.VisualHit; } } ////// The Model3D intersected by the ray. /// public Model3D ModelHit { get { return _modelHit; } } ////// This is a point in 3-space at which the ray intersected /// the geometry of the hit Model3D. This point is in the /// local coordinate system of the Model3D. /// public abstract Point3D PointHit { get; } ////// This is the distance between the ray's origin and the /// point hit. /// public abstract double DistanceToRayOrigin { get; } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- internal abstract void SetDistanceToRayOrigin(double distance); internal static int CompareByDistanceToRayOrigin(RayHitTestResult x, RayHitTestResult y) { return Math.Sign(x.DistanceToRayOrigin - y.DistanceToRayOrigin); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private readonly Model3D _modelHit; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NullableDoubleAverageAggregationOperator.cs
- URLMembershipCondition.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- BitmapEffectCollection.cs
- ConsoleTraceListener.cs
- PeerNameRecord.cs
- SafeTokenHandle.cs
- DetailsViewInsertedEventArgs.cs
- NetSectionGroup.cs
- UnsafeNativeMethodsPenimc.cs
- _SslSessionsCache.cs
- VBIdentifierTrimConverter.cs
- WebPartsSection.cs
- DocumentViewer.cs
- InstanceData.cs
- FontCacheLogic.cs
- Bidi.cs
- GridSplitterAutomationPeer.cs
- StringFreezingAttribute.cs
- ToolStripContextMenu.cs
- ManualWorkflowSchedulerService.cs
- StructuredType.cs
- DoubleUtil.cs
- XmlDomTextWriter.cs
- ButtonField.cs
- FileDialogPermission.cs
- SerialPort.cs
- DropAnimation.xaml.cs
- FileDialogCustomPlacesCollection.cs
- RegisteredHiddenField.cs
- PhysicalAddress.cs
- ActivityTypeDesigner.xaml.cs
- controlskin.cs
- EventDriven.cs
- ImageUrlEditor.cs
- DataGridViewDataConnection.cs
- XmlILConstructAnalyzer.cs
- BaseAsyncResult.cs
- CompoundFileDeflateTransform.cs
- CapabilitiesState.cs
- RemotingConfigParser.cs
- SqlExpander.cs
- AgileSafeNativeMemoryHandle.cs
- BinaryOperationBinder.cs
- CollectionEditVerbManager.cs
- ApplicationTrust.cs
- NaturalLanguageHyphenator.cs
- RadioButtonBaseAdapter.cs
- Win32.cs
- MetadataArtifactLoaderCompositeResource.cs
- Ref.cs
- CustomCredentialPolicy.cs
- NavigateEvent.cs
- InvokeHandlers.cs
- UdpContractFilterBehavior.cs
- DurableDispatcherAddressingFault.cs
- DataListItemEventArgs.cs
- SourceElementsCollection.cs
- SingleObjectCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- StateMachineWorkflow.cs
- WebPartDisplayMode.cs
- InteropAutomationProvider.cs
- ConnectionInterfaceCollection.cs
- ScriptReference.cs
- FormViewInsertEventArgs.cs
- ContainerSelectorGlyph.cs
- LinqDataSourceInsertEventArgs.cs
- Ref.cs
- DataGridAddNewRow.cs
- JsonClassDataContract.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MsmqIntegrationInputMessage.cs
- InlineCollection.cs
- XmlDocument.cs
- PropertyMetadata.cs
- XmlNullResolver.cs
- Pointer.cs
- PeerTransportListenAddressConverter.cs
- ToolStripStatusLabel.cs
- BufferedStream.cs
- RectAnimationUsingKeyFrames.cs
- StorageInfo.cs
- HttpRequest.cs
- SyntaxCheck.cs
- DataGridTablesFactory.cs
- Documentation.cs
- Double.cs
- PeerService.cs
- UnlockInstanceAsyncResult.cs
- MD5CryptoServiceProvider.cs
- DrawingDrawingContext.cs
- TransactionState.cs
- ConfigurationLocation.cs
- Span.cs
- TagPrefixAttribute.cs
- FileLevelControlBuilderAttribute.cs
- AssemblyCollection.cs
- WebPartTransformer.cs
- SignedXml.cs