SCNNode.HitTest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HitTest(SCNVector3, SCNVector3, NSDictionary) |
Returns an array of hit test results for descendant nodes that intersect with a line between |
HitTest(SCNVector3, SCNVector3, SCNHitTestOptions) |
Returns an array of hit test results for descendant nodes that intersect with a line between |
HitTest(SCNVector3, SCNVector3, NSDictionary)
Returns an array of hit test results for descendant nodes that intersect with a line between pointA
and pointB
.
[Foundation.Export("hitTestWithSegmentFromPoint:toPoint:options:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual SceneKit.SCNHitTestResult[] HitTest (SceneKit.SCNVector3 pointA, SceneKit.SCNVector3 pointB, Foundation.NSDictionary options);
abstract member HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * Foundation.NSDictionary -> SceneKit.SCNHitTestResult[]
override this.HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * Foundation.NSDictionary -> SceneKit.SCNHitTestResult[]
Parameters
- pointA
- SCNVector3
- pointB
- SCNVector3
Returns
- Attributes
Applies to
HitTest(SCNVector3, SCNVector3, SCNHitTestOptions)
Returns an array of hit test results for descendant nodes that intersect with a line between pointA
and pointB
.
public SceneKit.SCNHitTestResult[] HitTest (SceneKit.SCNVector3 pointA, SceneKit.SCNVector3 pointB, SceneKit.SCNHitTestOptions options);
member this.HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * SceneKit.SCNHitTestOptions -> SceneKit.SCNHitTestResult[]
Parameters
- pointA
- SCNVector3
- pointB
- SCNVector3
- options
- SCNHitTestOptions
Strongly typed set of options to perform the hit-test detection.
This parameter can be null
.