Computes the 3d ray \((r_x, r_y, 1)\) for a 2d point \((x', y')\) on the
image plane. For an orthographic camera the rays are constant over the image
plane with
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[],null,["# tfg.rendering.camera.orthographic.ray\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/camera/orthographic.py#L72-L108) |\n\nComputes the 3d ray for a 2d point (the z component of the ray is 1). \n\n tfg.rendering.camera.orthographic.ray(\n point_2d: type_alias.TensorLike, name: str = 'orthographic_ray'\n ) -\u003e tf.Tensor\n\nComputes the 3d ray \\\\((r_x, r_y, 1)\\\\) for a 2d point \\\\((x', y')\\\\) on the\nimage plane. For an orthographic camera the rays are constant over the image\nplane with\n\n\\\\\\[\n\\\\begin{matrix}\nr_x = 0, \\& r_y = 0, \\& z = 1.\n\\\\end{matrix}\n\\\\\\]\n| **Note:** In the following, A1 to An are optional batch dimensions.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|---------------------------------------------------------------------------------------|\n| `point_2d` | A tensor of shape `[A1, ..., An, 2]`, where the last dimension represents a 2d point. |\n| `name` | A name for this op that defaults to \"orthographic_ray\". |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A tensor of shape `[A1, ..., An, 3]`, where the last dimension represents a 3d ray. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|----------------------------------------------|\n| `ValueError` | If the shape of `point_2d` is not supported. |\n\n\u003cbr /\u003e"]]