TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfg.geometry.representation.point.project_to_ray

Computes the projection of a M-d point on a M-d ray.

tfg.geometry.representation.point.project_to_ray(
    point,
    origin,
    direction,
    name=None
)

Defined in geometry/representation/point.py.

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.