tfg.geometry.representation.point.project_to_ray
Stay organized with collections
Save and categorize content based on your preferences.
Computes the projection of a M-d point on a M-d ray.
tfg.geometry.representation.point.project_to_ray(
point: type_alias.TensorLike,
origin: type_alias.TensorLike,
direction: type_alias.TensorLike,
name: str = 'point_project_to_ray'
) -> tf.Tensor
Note |
In the following, A1 to An are optional batch dimensions, which must be
broadcast compatible.
|
Args |
point
|
A tensor of shape [A1, ..., An, M] .
|
origin
|
A tensor of shape [A1, ..., An, M] .
|
direction
|
A tensor of shape [A1, ..., An, M] . The last dimension must be
normalized.
|
name
|
A name for this op. Defaults to "point_project_to_ray".
|
Returns |
A tensor of shape [A1, ..., An, M] containing the projected point.
|
Raises |
ValueError
|
If the shape of point , origin , or 'direction' is not
supported.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-28 UTC.
[null,null,["Last updated 2022-10-28 UTC."],[],[],null,["# tfg.geometry.representation.point.project_to_ray\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/geometry/representation/point.py#L77-L117) |\n\nComputes the projection of a M-d point on a M-d ray. \n\n tfg.geometry.representation.point.project_to_ray(\n point: type_alias.TensorLike,\n origin: type_alias.TensorLike,\n direction: type_alias.TensorLike,\n name: str = 'point_project_to_ray'\n ) -\u003e tf.Tensor\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Note ---- ||\n|---|---|\n| In the following, A1 to An are optional batch dimensions, which must be broadcast compatible. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------|------------------------------------------------------------------------------|\n| `point` | A tensor of shape `[A1, ..., An, M]`. |\n| `origin` | A tensor of shape `[A1, ..., An, M]`. |\n| `direction` | A tensor of shape `[A1, ..., An, M]`. The last dimension must be normalized. |\n| `name` | A name for this op. Defaults to \"point_project_to_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, M]` containing the projected point. ||\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`, `origin`, or 'direction' is not supported. |\n\n\u003cbr /\u003e"]]