Share via


MDLCamera.RayTo(NVector2i, NVector2i) Method

Definition

Returns a truncated 3D ray that points from the camera toward the 2D point that is specified by taking pixel as coordinates in a viewport with the dimensions in size.

[Foundation.Export("rayTo:forViewPort:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Numerics.Vector3 RayTo(CoreGraphics.NVector2i pixel, CoreGraphics.NVector2i size);
[<Foundation.Export("rayTo:forViewPort:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RayTo : CoreGraphics.NVector2i * CoreGraphics.NVector2i -> System.Numerics.Vector3
override this.RayTo : CoreGraphics.NVector2i * CoreGraphics.NVector2i -> System.Numerics.Vector3

Parameters

pixel
NVector2i
size
NVector2i

Returns

Attributes

Applies to