File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,16 @@ impl Rectangle {
4141 pub fn check_collision_point_rec ( & self , point : impl Into < ffi:: Vector2 > ) -> bool {
4242 unsafe { ffi:: CheckCollisionPointRec ( point. into ( ) , self . into ( ) ) }
4343 }
44+ }
4445
45- /// Check if circle collides with a line created betweeen two points [p1] and [p2]
46- pub fn check_collision_circle_line (
47- & self ,
48- center : impl Into < ffi:: Vector2 > ,
49- radius : f32 ,
50- p1 : impl Into < ffi:: Vector2 > ,
51- p2 : impl Into < ffi:: Vector2 > ,
52- ) -> bool {
53- unsafe { ffi:: CheckCollisionCircleLine ( center. into ( ) , radius, p1. into ( ) , p2. into ( ) ) }
54- }
46+ /// Check if circle collides with a line created betweeen two points [p1] and [p2]
47+ pub fn check_collision_circle_line (
48+ center : impl Into < ffi:: Vector2 > ,
49+ radius : f32 ,
50+ p1 : impl Into < ffi:: Vector2 > ,
51+ p2 : impl Into < ffi:: Vector2 > ,
52+ ) -> bool {
53+ unsafe { ffi:: CheckCollisionCircleLine ( center. into ( ) , radius, p1. into ( ) , p2. into ( ) ) }
5554}
5655
5756// Collision Handling
You can’t perform that action at this time.
0 commit comments