tfg.geometry.representation.point.distance_to_ray
Computes the distance from a M-d point to a M-d ray.
tfg.geometry.representation.point.distance_to_ray(
point: type_alias.TensorLike,
origin: type_alias.TensorLike,
direction: type_alias.TensorLike,
keepdims: bool = True,
name: str = 'point_distance_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.
|
keepdims
|
A bool , whether to keep the last dimension with length 1 or to
remove it.
|
name
|
A name for this op. Defaults to "point_distance_to_ray".
|
Returns |
A tensor of shape [A1, ..., An, 1] containing the distance from each point
to the corresponding ray.
|
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."],[],[]]