KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_marker.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2009 Jean-Pierre Charras, [email protected]
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#include <sch_draw_panel.h>
22#include <google/protobuf/any.pb.h>
23#include <api/api_enums.h>
24#include <api/api_sch_utils.h>
25#include <api/api_utils.h>
26#include <api/schematic/schematic_rules.pb.h>
27#include <trigo.h>
28#include <widgets/msgpanel.h>
29#include <bitmaps.h>
30#include <base_units.h>
31#include <eda_draw_frame.h>
32#include <erc/erc_settings.h>
33#include <sch_marker.h>
34#include <schematic.h>
35#include <widgets/ui_common.h>
37#include <pgm_base.h>
40#include <erc/erc_item.h>
41#include <sch_screen.h>
42
44#define SCALING_FACTOR schIUScale.mmToIU( 0.15 )
45
46
47SCH_MARKER::SCH_MARKER( std::shared_ptr<ERC_ITEM> aItem, const VECTOR2I& aPos ) :
48 SCH_ITEM( nullptr, SCH_MARKER_T ),
50{
51 if( m_rcItem )
52 m_rcItem->SetParent( this );
53
54 m_Pos = aPos;
55}
56
57
59{
60 if( m_rcItem )
61 m_rcItem->SetParent( nullptr );
62}
63
64
66{
67 SCH_MARKER* res = new SCH_MARKER( *this );
68
69 // An RC_ITEM is shared between its marker and various tree views. It cannot be shared between
70 // two markers.
71 if( m_rcItem )
72 {
73 res->m_rcItem = std::make_shared<ERC_ITEM>( *std::static_pointer_cast<ERC_ITEM>( m_rcItem ) );
74 res->m_rcItem->SetParent( res );
75 }
76
77 return res;
78}
79
80
82{
83 SCH_MARKER* item = static_cast<SCH_MARKER*>( aItem );
84
85 std::swap( m_Pos, item->m_Pos );
86
87 std::swap( m_markerType, item->m_markerType );
88 std::swap( m_excluded, item->m_excluded );
89 std::swap( m_comment, item->m_comment );
90
91 std::swap( m_rcItem, item->m_rcItem );
92 {
93 if( m_rcItem )
94 m_rcItem->SetParent( this );
95
96 if( item->m_rcItem )
97 item->m_rcItem->SetParent( item );
98 }
99
100 std::swap( m_scalingFactor, item->m_scalingFactor );
101 std::swap( m_shapeBoundingBox, item->m_shapeBoundingBox );
102}
103
104
105void SCH_MARKER::ToProto( kiapi::schematic::ErcMarker& aMsg, const SCH_MARKER& aMarker )
106{
107 std::shared_ptr<ERC_ITEM> erc = std::static_pointer_cast<ERC_ITEM>( aMarker.GetRCItem() );
108
109 aMsg.set_error_type(
110 ToProtoEnum<ERCE_T, kiapi::schematic::ErcErrorType>( static_cast<ERCE_T>( erc->GetErrorCode() ) ) );
111
112 kiapi::common::PackVector2( *aMsg.mutable_position(), aMarker.GetPos(), schIUScale );
113
114 if( erc->IsSheetSpecific() )
115 PackSheetPath( *aMsg.mutable_sheet_specific_path(), erc->GetSpecificSheetPath() );
116
117 if( erc->MainItemHasSheetPath() )
118 PackSheetPath( *aMsg.mutable_main_item_sheet_path(), erc->GetMainItemSheetPath() );
119
120 if( erc->AuxItemHasSheetPath() )
121 PackSheetPath( *aMsg.mutable_aux_item_sheet_path(), erc->GetAuxItemSheetPath() );
122
123 SCHEMATIC* schematic = aMarker.Schematic();
124
125 if( schematic
126 && ( erc->GetErrorCode() == ERCE_GENERIC_WARNING
127 || erc->GetErrorCode() == ERCE_GENERIC_ERROR
128 || erc->GetErrorCode() == ERCE_UNRESOLVED_VARIABLE ) )
129 {
130 SCH_ITEM* sch_item = schematic->ResolveItem( erc->GetMainItemID() );
131 SCH_ITEM* parent = sch_item ? static_cast<SCH_ITEM*>( sch_item->GetParent() ) : nullptr;
132 EDA_TEXT* text_item = dynamic_cast<EDA_TEXT*>( sch_item );
133
134 // SCH_FIELDs and SCH_ITEMs inside LIB_SYMBOLs don't have persistent KIIDs. So the
135 // exclusion must refer to the parent's KIID, and include the text of the original text
136 // item for later look-up.
137 if( parent && parent->IsType( { SCH_SYMBOL_T, SCH_LABEL_T, SCH_SHEET_T } ) && text_item )
138 {
139 aMsg.add_items()->set_value( parent->m_Uuid.AsStdString() );
140 aMsg.mutable_child()->set_text_value( text_item->GetText().ToUTF8() );
141 }
142 }
143
144 for( const KIID& id : erc->GetIDs() )
145 {
146 if( id != niluuid )
147 aMsg.add_items()->set_value( id.AsStdString() );
148 }
149
150 aMsg.set_description( HYPERLINK_DV_RENDERER::StripMarkup( erc->GetErrorMessage( false ) ).ToUTF8() );
151
152 if( schematic )
153 {
155 aMsg.set_excluded( aMarker.IsTreatedAsExcluded() );
156 }
157 else if( aMarker.IsExcluded() )
158 {
160 aMsg.set_excluded( true );
161 }
162}
163
164
165SCH_MARKER* SCH_MARKER::FromProto( const kiapi::schematic::ErcMarker& aMsg, const SCH_SHEET_LIST& aSheetList )
166{
168
169 std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( code );
170
171 if( !ercItem )
172 return nullptr;
173
174 VECTOR2I pos = kiapi::common::UnpackVector2( aMsg.position(), schIUScale );
175
176 if( aMsg.has_aux_item_sheet_path() && !aMsg.has_main_item_sheet_path() )
177 return nullptr;
178
179 if( aMsg.has_sheet_specific_path() )
180 {
181 KIID_PATH path = kiapi::common::UnpackSheetPath( aMsg.sheet_specific_path() );
182 std::optional<SCH_SHEET_PATH> sheetPath = aSheetList.GetSheetPathByKIIDPath( path, true );
183
184 if( sheetPath.has_value() )
185 ercItem->SetSheetSpecificPath( sheetPath.value() );
186 else
187 return nullptr;
188 }
189
190 if( aMsg.has_main_item_sheet_path() )
191 {
192 KIID_PATH path = kiapi::common::UnpackSheetPath( aMsg.main_item_sheet_path() );
193 std::optional<SCH_SHEET_PATH> mainPath = aSheetList.GetSheetPathByKIIDPath( path, true );
194
195 if( mainPath.has_value() )
196 {
197 if( aMsg.has_aux_item_sheet_path() )
198 {
199 KIID_PATH auxPath = kiapi::common::UnpackSheetPath( aMsg.aux_item_sheet_path() );
200 std::optional<SCH_SHEET_PATH> auxPathResolved = aSheetList.GetSheetPathByKIIDPath( auxPath, true );
201
202 if( auxPathResolved.has_value() )
203 ercItem->SetItemsSheetPaths( mainPath.value(), auxPathResolved.value() );
204 else
205 return nullptr;
206 }
207 else
208 {
209 ercItem->SetItemsSheetPaths( mainPath.value() );
210 }
211 }
212 else
213 {
214 return nullptr;
215 }
216 }
217
218 if( aMsg.has_child() && aMsg.items_size() > 0 )
219 {
220 SCH_ITEM* parent = aSheetList.ResolveItem( KIID( aMsg.items( 0 ).value() ) );
221
222 if( !parent )
223 return nullptr;
224
225 wxString text = wxString::FromUTF8( aMsg.child().text_value() );
226 KIID uuid = niluuid;
227
228 parent->RunOnChildren(
229 [&]( SCH_ITEM* child )
230 {
231 if( EDA_TEXT* text_item = dynamic_cast<EDA_TEXT*>( child ) )
232 {
233 if( text_item->GetText() == text )
234 uuid = child->m_Uuid;
235 }
236 },
238
239 if( uuid == niluuid && parent->Type() == SCH_SYMBOL_T )
240 {
241 static_cast<SCH_SYMBOL*>( parent )->GetLibSymbolRef()->RunOnChildren(
242 [&]( SCH_ITEM* child )
243 {
244 if( child->Type() == SCH_FIELD_T )
245 {
246 // Match only on SCH_SYMBOL fields, not LIB_SYMBOL fields.
247 }
248 else if( EDA_TEXT* text_item = dynamic_cast<EDA_TEXT*>( child ) )
249 {
250 if( text_item->GetText() == text )
251 uuid = child->m_Uuid;
252 }
253 },
255 }
256
257 if( uuid != niluuid )
258 ercItem->SetItems( uuid );
259 else
260 return nullptr;
261 }
262 else
263 {
264 std::vector<KIID> ids;
265 ids.reserve( aMsg.items_size() );
266
267 for( const auto& item : aMsg.items() )
268 ids.emplace_back( item.value() );
269
270 ercItem->SetItems( ids );
271 }
272
273 SCH_MARKER* marker = new SCH_MARKER( std::move( ercItem ), pos );
274
275 return marker;
276}
277
278
279void SCH_MARKER::Serialize( google::protobuf::Any& aContainer ) const
280{
281 kiapi::schematic::ErcMarker msg;
282 ToProto( msg, *this );
283
284 if( !aContainer.PackFrom( msg ) )
285 wxFAIL_MSG( wxT( "Failed to pack SCH_MARKER" ) );
286}
287
288
289bool SCH_MARKER::Deserialize( const google::protobuf::Any& aContainer )
290{
291 kiapi::schematic::ErcMarker msg;
292
293 if( !aContainer.UnpackTo( &msg ) )
294 return false;
295
296 if( !Schematic() )
297 return false;
298
299 std::unique_ptr<SCH_MARKER> tmp( SCH_MARKER::FromProto( msg, Schematic()->Hierarchy() ) );
300
301 if( !tmp )
302 return false;
303
304 swapData( tmp.get() );
305 return true;
306}
307
308
309#if defined(DEBUG)
310
311void SCH_MARKER::Show( int nestLevel, std::ostream& os ) const
312{
313 // for now, make it look like XML:
314 NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str() << GetPos() << "/>\n";
315}
316
317#endif
318
319
320std::vector<int> SCH_MARKER::ViewGetLayers() const
321{
322 wxCHECK2_MSG( Schematic(), return {}, "No SCHEMATIC set for SCH_MARKER!" );
323
324 // Don't display sheet-specific markers when SCH_SHEET_PATHs do not match
325 std::shared_ptr<ERC_ITEM> ercItem = std::static_pointer_cast<ERC_ITEM>( GetRCItem() );
326
327 if( ercItem->IsSheetSpecific()
328 && ( ercItem->GetSpecificSheetPath() != Schematic()->CurrentSheet() ) )
329 {
330 return {};
331 }
332
333 std::vector<int> layers( 2 );
334
335 if( IsExcluded() )
336 {
337 layers[0] = LAYER_ERC_EXCLUSION;
338 }
339 else
340 {
341 switch( Schematic()->ErcSettings().GetSeverity( m_rcItem->GetErrorCode() ) )
342 {
343 case SEVERITY::RPT_SEVERITY_IGNORE: return {};
344 case SEVERITY::RPT_SEVERITY_WARNING: layers[0] = LAYER_ERC_WARN; break;
345 default:
346 case SEVERITY::RPT_SEVERITY_ERROR: layers[0] = LAYER_ERC_ERR; break;
347 }
348 }
349
350 layers[1] = LAYER_SELECTION_SHADOWS;
351 return layers;
352}
353
354
356{
357 if( IsExcluded() )
358 return LAYER_ERC_EXCLUSION;
359
360 wxCHECK_MSG( Schematic(), LAYER_ERC_ERR, "No SCHEMATIC set for SCH_MARKER!" );
361
362 switch( Schematic()->ErcSettings().GetSeverity( m_rcItem->GetErrorCode() ) )
363 {
364 default:
367 }
368}
369
370
372{
373 return ::GetColorSettings( DEFAULT_THEME )->GetColor( GetColorLayer() );
374}
375
376
378{
379 if( IsExcluded() )
381
382 ERC_ITEM* item = static_cast<ERC_ITEM*>( m_rcItem.get() );
383
384 return Schematic()->ErcSettings().GetSeverity( item->GetErrorCode() );
385}
386
387
388bool SCH_MARKER::Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const
389{
390 return SCH_ITEM::Matches( m_rcItem->GetErrorMessage( true ), aSearchData );
391}
392
393
395{
396 return GetBoundingBoxMarker();
397}
398
399
400void SCH_MARKER::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList )
401{
402 aList.emplace_back( _( "Type" ), _( "Marker" ) );
403 aList.emplace_back( _( "Violation" ), HYPERLINK_DV_RENDERER::StripMarkup( m_rcItem->GetErrorMessage( true ) ) );
404
405 switch( GetSeverity() )
406 {
407 case RPT_SEVERITY_IGNORE: aList.emplace_back( _( "Severity" ), _( "Ignore" ) ); break;
408 case RPT_SEVERITY_WARNING: aList.emplace_back( _( "Severity" ), _( "Warning" ) ); break;
409 case RPT_SEVERITY_ERROR: aList.emplace_back( _( "Severity" ), _( "Error" ) ); break;
410 default: break;
411 }
412
414 {
415 aList.emplace_back( _( "Drawing Sheet" ), wxEmptyString );
416 }
417 else
418 {
419 wxString mainText;
420 wxString auxText;
421 EDA_ITEM* mainItem = nullptr;
422 EDA_ITEM* auxItem = nullptr;
423
424 if( m_rcItem->GetMainItemID() != niluuid )
425 mainItem = aFrame->ResolveItem( m_rcItem->GetMainItemID() );
426
427 if( m_rcItem->GetAuxItemID() != niluuid )
428 auxItem = aFrame->ResolveItem( m_rcItem->GetAuxItemID() );
429
430 if( mainItem )
431 mainText = mainItem->GetItemDescription( aFrame, true );
432
433 if( auxItem )
434 auxText = auxItem->GetItemDescription( aFrame, true );
435
436 aList.emplace_back( mainText, auxText );
437 }
438
439 if( IsExcluded() )
440 aList.emplace_back( _( "Excluded" ), m_comment );
441}
442
443
445{
446 return BITMAPS::erc;
447}
448
449
450void SCH_MARKER::Rotate( const VECTOR2I& aCenter, bool aRotateCCW )
451{
452 // Marker geometry isn't user-editable
453}
454
455
457{
458 // Marker geometry isn't user-editable
459}
460
461
463{
464 // Marker geometry isn't user-editable
465}
466
467
468bool SCH_MARKER::HitTest( const VECTOR2I& aPosition, int aAccuracy ) const
469{
470 return HitTestMarker( aPosition, aAccuracy );
471}
KICOMMON_API types::KiCadObjectType ToProtoEnum(KICAD_T aValue)
KICOMMON_API KICAD_T FromProtoEnum(types::KiCadObjectType aValue)
Definition api_enums.cpp:56
void PackSheetPath(types::SheetPath &aOutput, const SCH_SHEET_PATH &aInput)
constexpr EDA_IU_SCALE schIUScale
Definition base_units.h:130
BITMAPS
A list of all bitmap identifiers.
BOX2< VECTOR2I > BOX2I
Definition box2.h:917
The base class for create windows for drawing purpose.
virtual EDA_ITEM * ResolveItem(const KIID &aId, bool aAllowNullptrReturn=false) const
Fetch an item by KIID.
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
Definition eda_item.cpp:314
const KIID m_Uuid
Definition eda_item.h:599
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:110
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:484
EDA_ITEM * GetParent() const
Definition eda_item.h:112
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition eda_item.cpp:84
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
Definition eda_text.h:94
virtual const wxString & GetText() const
Return the string associated with the text object.
Definition eda_text.h:118
static std::shared_ptr< ERC_ITEM > Create(int aErrorCode)
Constructs an ERC_ITEM for the given error code.
Definition erc_item.cpp:321
SEVERITY GetSeverity(int aErrorCode) const
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:101
Definition kiid.h:46
std::string AsStdString() const
Definition kiid.cpp:270
bool IsExcluded() const
Definition marker_base.h:88
bool HitTestMarker(const VECTOR2I &aHitPosition, int aAccuracy) const
Test if the given VECTOR2I is within the bounds of this object.
std::shared_ptr< RC_ITEM > GetRCItem() const
int m_scalingFactor
Scaling factor to convert corners coordinates to internal units.
wxString m_comment
User supplied comment.
const VECTOR2I & GetPos() const
Definition marker_base.h:78
VECTOR2I m_Pos
Position of the marker.
bool IsTreatedAsExcluded() const
A marker is treated as excluded when the user has dismissed it through the DRC UI (m_excluded) or whe...
@ MARKER_DRAWING_SHEET
Definition marker_base.h:51
MARKER_T m_markerType
The type of marker.
bool m_excluded
User has excluded this specific error.
std::shared_ptr< RC_ITEM > m_rcItem
enum MARKER_T GetMarkerType() const
Definition marker_base.h:86
BOX2I m_shapeBoundingBox
Bounding box of the graphic symbol relative to the position of the shape in marker shape units.
MARKER_BASE(int aScalingFactor, std::shared_ptr< RC_ITEM > aItem, MARKER_T aType=MARKER_UNSPEC)
BOX2I GetBoundingBoxMarker() const
Return the orthogonal, bounding box of this object for display purposes.
int GetErrorCode() const
Definition rc_item.h:213
void SetParent(MARKER_BASE *aMarker)
Definition rc_item.h:190
Holds all the data relating to one schematic.
Definition schematic.h:155
SCH_ITEM * ResolveItem(const KIID &aID, SCH_SHEET_PATH *aPathOut=nullptr, bool aAllowNullptrReturn=false) const
Definition schematic.h:276
ERC_SETTINGS & ErcSettings() const
virtual void RunOnChildren(const std::function< void(SCH_ITEM *)> &aFunction, RECURSE_MODE aMode)
Definition sch_item.h:683
SCHEMATIC * Schematic() const
Search the item hierarchy to find a SCHEMATIC.
Definition sch_item.cpp:302
SCH_ITEM(EDA_ITEM *aParent, KICAD_T aType, int aUnit=0, int aBodyStyle=0)
Definition sch_item.cpp:65
bool IsType(const std::vector< KICAD_T > &aScanTypes) const override
Check whether the item is one of the listed types.
Definition sch_item.h:185
SEVERITY GetSeverity() const override
wxString GetClass() const override
Return the class name.
Definition sch_marker.h:47
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare DRC marker main and auxiliary text against search string.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
SCH_LAYER_ID GetColorLayer() const
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
std::vector< int > ViewGetLayers() const override
Return the layers the item is drawn on (which may be more than its "home" layer)
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
void swapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
static void ToProto(kiapi::schematic::ErcMarker &aMsg, const SCH_MARKER &aMarker)
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
static SCH_MARKER * FromProto(const kiapi::schematic::ErcMarker &aMsg, const SCH_SHEET_LIST &aSheetList)
KIGFX::COLOR4D getColor() const override
BOX2I const GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
SCH_MARKER(std::shared_ptr< ERC_ITEM > aItem, const VECTOR2I &aPos)
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
std::optional< SCH_SHEET_PATH > GetSheetPathByKIIDPath(const KIID_PATH &aPath, bool aIncludeLastSheet=true) const
Finds a SCH_SHEET_PATH that matches the provided KIID_PATH.
SCH_ITEM * ResolveItem(const KIID &aID, SCH_SHEET_PATH *aPathOut=nullptr, bool aAllowNullptrReturn=false) const
Fetch a SCH_ITEM by ID.
Schematic symbol object.
Definition sch_symbol.h:76
void RunOnChildren(const std::function< void(SCH_ITEM *)> &aFunction, RECURSE_MODE aMode) override
#define _(s)
@ NO_RECURSE
Definition eda_item.h:52
ERCE_T
ERC error codes.
@ ERCE_UNRESOLVED_VARIABLE
A text variable could not be resolved.
@ ERCE_GENERIC_ERROR
@ ERCE_GENERIC_WARNING
KIID niluuid(0)
SCH_LAYER_ID
Eeschema drawing layers.
Definition layer_ids.h:480
@ LAYER_ERC_WARN
Definition layer_ids.h:510
@ LAYER_ERC_EXCLUSION
Definition layer_ids.h:512
@ LAYER_ERC_ERR
Definition layer_ids.h:511
@ LAYER_SELECTION_SHADOWS
Definition layer_ids.h:526
Message panel definition file.
KICOMMON_API KIID_PATH UnpackSheetPath(const types::SheetPath &aInput)
KICOMMON_API VECTOR2I UnpackVector2(const types::Vector2 &aInput, const EDA_IU_SCALE &aScale)
KICOMMON_API void PackVector2(types::Vector2 &aOutput, const VECTOR2I &aInput, const EDA_IU_SCALE &aScale)
STL namespace.
see class PGM_BASE
SEVERITY
@ RPT_SEVERITY_WARNING
@ RPT_SEVERITY_ERROR
@ RPT_SEVERITY_EXCLUSION
@ RPT_SEVERITY_IGNORE
#define SCALING_FACTOR
Factor to convert the maker unit shape to internal units:
#define DEFAULT_THEME
nanodbc::result res
std::string path
@ SCH_SYMBOL_T
Definition typeinfo.h:168
@ SCH_FIELD_T
Definition typeinfo.h:146
@ SCH_MARKER_T
Definition typeinfo.h:154
Functions to provide common constants and other functions to assist in making a consistent UI.
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:708