mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-14 12:02:38 +08:00
AP_Math: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
1 parent
20070b7e37
commit
72c77b3453
3 files changed
+8
-8
No files matched your search
@@ -241,7 +241,7 @@ bool Vector2<T>::circle_segment_intersection(const Vector2<T>& seg_start, const
|
||||
// -> o o -> | -> |
|
||||
// FallShort (t1>1,t2>1), Past (t1<0,t2<0), CompletelyInside(t1<0, t2>1)
|
||||
|
||||
// intersection = new Vector3(E.x + t1 * d.x, secondPoint.y, E.y + t1 * d.y);
|
||||
// intersection = NEW_NOTHROW Vector3(E.x + t1 * d.x, secondPoint.y, E.y + t1 * d.y);
|
||||
// intersection.x = seg_start.x + t1 * seg_end_minus_start.x;
|
||||
// intersection.y = seg_start.y + t1 * seg_end_minus_start.y;
|
||||
|
||||
|
||||
Reference in new issue
Block a user