Edytuj

Udostępnij za pośrednictwem


MDLCamera.RayTo(Vector2i, Vector2i) 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:")]
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

Applies to