MDLCamera.RayTo(Vector2i, Vector2i) 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.
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:")]
public virtual OpenTK.Vector3 RayTo (OpenTK.Vector2i pixel, OpenTK.Vector2i size);
abstract member RayTo : OpenTK.Vector2i * OpenTK.Vector2i -> OpenTK.Vector3
override this.RayTo : OpenTK.Vector2i * OpenTK.Vector2i -> OpenTK.Vector3
Parameters
- pixel
- Vector2i
- size
- Vector2i
Returns
- Attributes