pub struct Line {
pub origin: Vec3,
pub dir: Vec3,
/* private fields */
}Expand description
An infinite line: origin + t * dir for all t ∈ (-∞, ∞).
Fields§
§origin: Vec3§dir: Vec3Implementations§
Trait Implementations§
Source§impl<PCL: PointCloudMarker> ColliderComponent<PCL> for Line
impl<PCL: PointCloudMarker> ColliderComponent<PCL> for Line
fn add_to_shapes(self, c: &mut Collider<PCL>)
Source§impl ColliderQuery<NoPcl> for Line
impl ColliderQuery<NoPcl> for Line
Source§impl ColliderQuery<Pointcloud> for Line
impl ColliderQuery<Pointcloud> for Line
fn query_collider(&self, c: &Collider<Pointcloud>) -> bool
Source§impl Collides<ConvexPolygon> for Line
impl Collides<ConvexPolygon> for Line
Source§impl Collides<ConvexPolytope> for Line
impl Collides<ConvexPolytope> for Line
Source§impl Collides<Line> for ConvexPolygon
impl Collides<Line> for ConvexPolygon
Source§impl Collides<Line> for ConvexPolytope
impl Collides<Line> for ConvexPolytope
Source§impl Collides<Line> for LineSegment
impl Collides<Line> for LineSegment
Source§impl Collides<Line> for Pointcloud
impl Collides<Line> for Pointcloud
Source§impl Collides<LineSegment> for Line
impl Collides<LineSegment> for Line
Source§impl Collides<Pointcloud> for Line
impl Collides<Pointcloud> for Line
Source§impl Stretchable for Line
impl Stretchable for Line
Source§impl Transformable for Line
impl Transformable for Line
fn translate(&mut self, offset: Vec3A)
fn rotate_mat(&mut self, mat: Mat3A)
fn rotate_quat(&mut self, quat: Quat)
fn transform(&mut self, mat: Affine3A)
fn translated(self, offset: Vec3A) -> Self
fn translate_d(&mut self, offset: DVec3)
fn translated_d(self, offset: DVec3) -> Self
fn rotated_mat(self, mat: Mat3A) -> Self
fn rotate_mat_d(&mut self, mat: DMat3)
fn rotated_mat_d(self, mat: DMat3) -> Self
fn rotated_quat(self, quat: Quat) -> Self
fn rotate_quat_d(&mut self, quat: DQuat)
fn rotated_quat_d(self, quat: DQuat) -> Self
fn transformed(self, mat: Affine3A) -> Self
fn transform_d(&mut self, mat: DAffine3)
fn transformed_d(self, mat: DAffine3) -> Self
impl Copy for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more