Ray2d

Ray2d

  • origin : glam::Vec2
  • direction : bevy_math::direction::Dir2

Description

An infinite half-line starting at origin and going in direction in 2D space.

Functions

FunctionSummary
clone(_self)No Documentation 🚧
eq(_self, other)No Documentation 🚧
get_point(_self, distance) Get a point at a given distance along the ray
intersect_plane(_self, plane_origin, plane) Get the distance to a plane if the ray intersects it
new(origin, direction) Create a new `Ray2d` from a given origin and direction