KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_rule_area.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#include <algorithm>
25#include <iterator>
26#include <map>
27#include <vector>
28
29#include <eda_draw_frame.h>
30#include <erc/erc_item.h>
31#include <erc/erc_settings.h>
34#include <sch_line.h>
35#include <sch_marker.h>
36#include <sch_rtree.h>
37#include <sch_rule_area.h>
38#include <sch_screen.h>
39#include <sch_sheet_path.h>
40#include <geometry/shape_rect.h>
41
42
44{
45 return wxT( "SCH_RULE_AREA" );
46}
47
48
50{
51 return _( "Rule Area" );
52}
53
54
56{
57 return new SCH_RULE_AREA( *this );
58}
59
60
65
66
67std::vector<SHAPE*> SCH_RULE_AREA::MakeEffectiveShapes( bool aEdgeOnly ) const
68{
69 std::vector<SHAPE*> effectiveShapes;
70 int width = GetEffectiveWidth();
71
72 switch( m_shape )
73 {
74 case SHAPE_T::POLY:
75 if( GetPolyShape().OutlineCount() == 0 ) // malformed/empty polygon
76 break;
77
78 for( int ii = 0; ii < GetPolyShape().OutlineCount(); ++ii )
79 {
80 const SHAPE_LINE_CHAIN& l = GetPolyShape().COutline( ii );
81
82 if( IsSolidFill() && !aEdgeOnly )
83 effectiveShapes.emplace_back( new SHAPE_SIMPLE( l ) );
84
85 if( width > 0 || !IsSolidFill() || aEdgeOnly )
86 {
87 int segCount = l.SegmentCount();
88
89 for( int jj = 0; jj < segCount; jj++ )
90 effectiveShapes.emplace_back( new SHAPE_SEGMENT( l.CSegment( jj ), width ) );
91 }
92 }
93
94 break;
95
96 default:
97 return SCH_SHAPE::MakeEffectiveShapes( aEdgeOnly );
98 }
99
100 return effectiveShapes;
101}
102
103
104void SCH_RULE_AREA::Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS& aPlotOpts,
105 int aUnit, int aBodyStyle, const VECTOR2I& aOffset, bool aDimmed )
106{
107 if( IsPrivate() )
108 return;
109
110 SCH_RENDER_SETTINGS* renderSettings = getRenderSettings( aPlotter );
111 int pen_size = GetEffectivePenWidth( renderSettings );
112
113 if( GetShape() != SHAPE_T::POLY )
114 SCH_SHAPE::Plot( aPlotter, aBackground, aPlotOpts, aUnit, aBodyStyle, aOffset, aDimmed );
115
116 static std::vector<VECTOR2I> ptList;
117
118 ptList.clear();
119
120 const std::vector<VECTOR2I>& polyPoints = m_poly.Outline( 0 ).CPoints();
121
122 for( const VECTOR2I& pt : polyPoints )
123 ptList.push_back( pt );
124
125 ptList.push_back( polyPoints[0] );
126
127 COLOR4D color = GetStroke().GetColor();
128 COLOR4D bg = renderSettings->GetBackgroundColor();
129 LINE_STYLE lineStyle = GetStroke().GetLineStyle();
130 FILL_T fill = m_fill;
131
132 if( aBackground )
133 {
134 if( !aPlotter->GetColorMode() )
135 return;
136
137 switch( m_fill )
138 {
140 return;
141
143 color = GetFillColor();
144 break;
145
147 color = renderSettings->GetLayerColor( LAYER_DEVICE_BACKGROUND );
148 break;
149
150 default:
151 return;
152 }
153
154 pen_size = 0;
155 lineStyle = LINE_STYLE::SOLID;
156 }
157 else /* if( aForeground ) */
158 {
159 if( !aPlotter->GetColorMode() || color == COLOR4D::UNSPECIFIED )
160 color = renderSettings->GetLayerColor( m_layer );
161
162 if( lineStyle == LINE_STYLE::DEFAULT )
163 lineStyle = LINE_STYLE::SOLID;
164
166 fill = m_fill;
167 else
168 fill = FILL_T::NO_FILL;
169
170 pen_size = GetEffectivePenWidth( renderSettings );
171 }
172
173 if( bg == COLOR4D::UNSPECIFIED || !aPlotter->GetColorMode() )
174 bg = COLOR4D::WHITE;
175
176 if( color.m_text.has_value() && Schematic() )
177 color = COLOR4D( ResolveText( color.m_text.value(), &Schematic()->CurrentSheet() ) );
178
179 if( aDimmed )
180 {
181 color.Desaturate();
182 color = color.Mix( bg, 0.5f );
183 }
184
185 aPlotter->SetColor( color );
186 aPlotter->SetCurrentLineWidth( pen_size );
187 aPlotter->SetDash( pen_size, lineStyle );
188
189 aPlotter->PlotPoly( ptList, fill, pen_size, nullptr );
190
191 aPlotter->SetDash( pen_size, LINE_STYLE::SOLID );
192}
193
194
195wxString SCH_RULE_AREA::GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const
196{
197 return _( "Schematic rule area" );
198}
199
200
202{
203 // Save the current state
206
207 // Reset the rule area
208 // Do NOT assume these pointers are valid.
209 m_items.clear();
210 m_itemIDs.clear();
211 m_directives.clear();
212 m_directiveIDs.clear();
213}
214
215
217{
218 EE_RTREE& items = screen->Items();
220
221 // Get any SCH_DIRECTIVE_LABELs which are attached to the rule area border
222 std::unordered_set<SCH_DIRECTIVE_LABEL*> attachedDirectives;
223 EE_RTREE::EE_TYPE candidateDirectives = items.Overlapping( SCH_DIRECTIVE_LABEL_T, boundingBox );
224
225 for( SCH_ITEM* candidateDirective : candidateDirectives )
226 {
227 SCH_DIRECTIVE_LABEL* label = static_cast<SCH_DIRECTIVE_LABEL*>( candidateDirective );
228 const std::vector<VECTOR2I> labelConnectionPoints = label->GetConnectionPoints();
229 assert( labelConnectionPoints.size() == 1 );
230
231 if( GetPolyShape().CollideEdge( labelConnectionPoints[0], nullptr, 5 ) )
232 addDirective( label );
233 }
234
235 // Next find any connectable items which lie within the rule area
236 EE_RTREE::EE_TYPE ruleAreaItems = items.Overlapping( boundingBox );
237
238 for( SCH_ITEM* areaItem : ruleAreaItems )
239 {
240 if( areaItem->IsType( { SCH_ITEM_LOCATE_WIRE_T, SCH_ITEM_LOCATE_BUS_T } ) )
241 {
242 SCH_LINE* lineItem = static_cast<SCH_LINE*>( areaItem );
243 SHAPE_SEGMENT lineSeg( lineItem->GetStartPoint(), lineItem->GetEndPoint(),
244 lineItem->GetLineWidth() );
245
246 if( GetPolyShape().Collide( &lineSeg ) )
247 addContainedItem( areaItem );
248 }
249 else if( areaItem->IsType( { SCH_PIN_T, SCH_LABEL_T, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T } ) )
250 {
251 std::vector<VECTOR2I> connectionPoints = areaItem->GetConnectionPoints();
252 wxASSERT( connectionPoints.size() == 1 );
253
254 if( GetPolyShape().Collide( connectionPoints[0] ) )
255 addContainedItem( areaItem );
256 }
257 else if( areaItem->IsType( { SCH_SYMBOL_T } ) )
258 {
259 SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( areaItem );
260 const BOX2I symbolBb = symbol->GetBoundingBox();
261 const SHAPE_RECT rect( symbolBb );
262
263 if( GetPolyShape().Collide( &rect ) )
264 {
265 addContainedItem( areaItem );
266
267 // Add child pins which are within the rule area
268 for( SCH_PIN* pin : symbol->GetPins() )
269 {
270 if( GetPolyShape().Collide( pin->GetPosition() ) )
272 }
273 }
274 }
275 else if( areaItem->IsType( { SCH_SHEET_T } ) )
276 {
277 const BOX2I sheetBb = areaItem->GetBoundingBox();
278 const SHAPE_RECT rect( sheetBb );
279
280 if( GetPolyShape().Collide( &rect ) )
281 {
282 addContainedItem( areaItem );
283 }
284 }
285 }
286}
287
288
289std::vector<std::pair<SCH_RULE_AREA*, SCH_SCREEN*>>
290SCH_RULE_AREA::UpdateRuleAreasInScreens( std::unordered_set<SCH_SCREEN*>& screens, KIGFX::SCH_VIEW* view )
291{
292 std::vector<std::pair<SCH_RULE_AREA*, SCH_SCREEN*>> forceUpdateRuleAreas;
293
294 for( SCH_SCREEN* screen : screens )
295 {
296 // First reset all item caches - must be done first to ensure two rule areas
297 // on the same item don't overwrite each other's caches
298 for( SCH_ITEM* item : screen->Items() )
299 {
300 if( item->Type() == SCH_RULE_AREA_T )
301 static_cast<SCH_RULE_AREA*>( item )->resetCaches();
302
303 if( item->Type() == SCH_DIRECTIVE_LABEL_T && view )
304 view->Update( item, KIGFX::REPAINT );
305
306 item->ClearRuleAreasCache();
307 }
308
309 // Secondly refresh the contained items
310 for( SCH_ITEM* ruleAreaAsItem : screen->Items().OfType( SCH_RULE_AREA_T ) )
311 {
312 SCH_RULE_AREA* ruleArea = static_cast<SCH_RULE_AREA*>( ruleAreaAsItem );
313
314 ruleArea->RefreshContainedItemsAndDirectives( screen );
315
316 if( ruleArea->m_directiveIDs != ruleArea->m_prev_directives )
317 forceUpdateRuleAreas.push_back( { ruleArea, screen } );
318 }
319 }
320
321 return forceUpdateRuleAreas;
322}
323
324
325const std::unordered_set<SCH_ITEM*>& SCH_RULE_AREA::GetContainedItems() const
326{
327 return m_items;
328}
329
330
331const std::unordered_set<SCH_DIRECTIVE_LABEL*>& SCH_RULE_AREA::GetDirectives() const
332{
333 return m_directives;
334}
335
336
337const std::unordered_set<KIID>& SCH_RULE_AREA::GetPastContainedItems() const
338{
339 return m_prev_items;
340}
341
342
343const std::vector<std::pair<wxString, SCH_ITEM*>>
345{
346 std::vector<std::pair<wxString, SCH_ITEM*>> resolvedNetclasses;
347
348 for( SCH_DIRECTIVE_LABEL* directive : m_directives )
349 {
350 directive->RunOnChildren(
351 [&]( SCH_ITEM* aChild )
352 {
353 if( aChild->Type() == SCH_FIELD_T )
354 {
355 SCH_FIELD* field = static_cast<SCH_FIELD*>( aChild );
356
357 if( field->GetCanonicalName() == wxT( "Netclass" ) )
358 {
359 wxString netclass = field->GetShownText( aSheetPath, false );
360
361 if( netclass != wxEmptyString )
362 resolvedNetclasses.push_back( { netclass, directive } );
363 }
364 }
365
366 return true;
367 },
369 }
370
371 return resolvedNetclasses;
372}
373
374
375void SCH_RULE_AREA::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList )
376{
377 aList.emplace_back( _( "Rule Area" ), wxEmptyString );
378
379 wxString msg;
380 msg.Printf( wxS( "%d" ), GetPolyShape().Outline( 0 ).PointCount() );
381 aList.emplace_back( _( "Points" ), msg );
382
383 m_stroke.GetMsgPanelInfo( aFrame, aList );
384
385 const std::vector<std::pair<wxString, SCH_ITEM*>> netclasses = SCH_RULE_AREA::GetResolvedNetclasses( nullptr );
386 wxString resolvedNetclass = _( "<None>" );
387
388 if( netclasses.size() > 0 )
389 resolvedNetclass = netclasses[0].first;
390
391 aList.emplace_back( _( "Resolved netclass" ), resolvedNetclass );
392}
393
394
396{
397 label->AddConnectedRuleArea( this );
398 m_directives.insert( label );
399 m_directiveIDs.insert( label->m_Uuid );
400}
401
402
404{
405 item->AddRuleAreaToCache( this );
406 m_items.insert( item );
407 m_itemIDs.insert( item->m_Uuid );
408}
409
410
BOX2< VECTOR2I > BOX2I
Definition box2.h:922
static const COLOR4D WHITE
Definition color4d.h:405
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
Definition color4d.h:402
The base class for create windows for drawing purpose.
const KIID m_Uuid
Definition eda_item.h:516
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:110
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition eda_item.cpp:39
SHAPE_T m_shape
Definition eda_shape.h:493
SHAPE_POLY_SET & GetPolyShape()
Definition eda_shape.h:336
SHAPE_T GetShape() const
Definition eda_shape.h:168
bool IsSolidFill() const
Definition eda_shape.h:117
COLOR4D GetFillColor() const
Definition eda_shape.h:152
SHAPE_POLY_SET m_poly
Definition eda_shape.h:515
STROKE_PARAMS m_stroke
Definition eda_shape.h:494
FILL_T m_fill
Definition eda_shape.h:495
Implement an R-tree for fast spatial and type indexing of schematic items.
Definition sch_rtree.h:40
EE_TYPE Overlapping(const BOX2I &aRect) const
Definition sch_rtree.h:246
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:105
std::optional< wxString > m_text
Definition color4d.h:399
COLOR4D & Desaturate()
Removes color (in HSL model)
Definition color4d.cpp:520
COLOR4D Mix(const COLOR4D &aColor, double aFactor) const
Return a color that is mixed with the input by a factor.
Definition color4d.h:296
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
void Update(const KIGFX::VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
Definition sch_view.cpp:60
Base plotter engine class.
Definition plotter.h:136
virtual void SetDash(int aLineWidth, LINE_STYLE aLineStyle)=0
bool GetColorMode() const
Definition plotter.h:164
virtual void SetCurrentLineWidth(int width, void *aData=nullptr)=0
Set the line width for the next drawing.
virtual void PlotPoly(const std::vector< VECTOR2I > &aCornerList, FILL_T aFill, int aWidth, void *aData)=0
Draw a polygon ( filled or not ).
virtual void SetColor(const COLOR4D &color)=0
Provide class metadata.Helper macro to map type hashes to names.
void InheritsAfter(TYPE_ID aDerived, TYPE_ID aBase)
Declare an inheritance relationship between types.
static PROPERTY_MANAGER & Instance()
void AddTypeCast(TYPE_CAST_BASE *aCast)
Register a type converter.
void AddConnectedRuleArea(SCH_RULE_AREA *aRuleArea)
Adds an entry to the connected rule area cache.
wxString GetCanonicalName() const
Get a non-language-specific name for a field which can be used for storage, variable look-up,...
wxString GetShownText(const SCH_SHEET_PATH *aPath, bool aAllowExtraText, int aDepth=0) const
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition sch_item.h:167
SCH_RENDER_SETTINGS * getRenderSettings(PLOTTER *aPlotter) const
Definition sch_item.h:704
SCHEMATIC * Schematic() const
Search the item hierarchy to find a SCHEMATIC.
Definition sch_item.cpp:247
bool IsPrivate() const
Definition sch_item.h:253
void AddRuleAreaToCache(SCH_RULE_AREA *aRuleArea)
Add a rule area to the item's cache.
Definition sch_item.h:656
SCH_ITEM(EDA_ITEM *aParent, KICAD_T aType, int aUnit=0, int aBodyStyle=0)
Definition sch_item.cpp:54
wxString ResolveText(const wxString &aText, const SCH_SHEET_PATH *aPath, int aDepth=0) const
Definition sch_item.cpp:339
int GetEffectivePenWidth(const SCH_RENDER_SETTINGS *aSettings) const
Definition sch_item.cpp:744
SCH_LAYER_ID m_layer
Definition sch_item.h:755
std::vector< VECTOR2I > GetConnectionPoints() const override
Add all the connection points for this item to aPoints.
Segment description base class to describe items which have 2 end points (track, wire,...
Definition sch_line.h:42
VECTOR2I GetEndPoint() const
Definition sch_line.h:148
VECTOR2I GetStartPoint() const
Definition sch_line.h:139
int GetLineWidth() const
Definition sch_line.h:198
const KIGFX::COLOR4D & GetBackgroundColor() const override
Return current background color settings.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
std::unordered_set< KIID > m_directiveIDs
virtual std::vector< SHAPE * > MakeEffectiveShapes(bool aEdgeOnly=false) const override
Make a set of SHAPE objects representing the EDA_SHAPE.
const std::unordered_set< SCH_ITEM * > & GetContainedItems() const
Return a set of all items contained within the rule area.
void addContainedItem(SCH_ITEM *item)
Add an item to the list of items which this rule area affects.
std::unordered_set< KIID > m_prev_items
All SCH_ITEM objectss contained or intersecting the rule area in the previous update.
std::unordered_set< KIID > m_prev_directives
All SCH_DIRECTIVE_LABEL objects attached to the rule area border in the previous update.
void RefreshContainedItemsAndDirectives(SCH_SCREEN *screen)
Refresh the list of items which this rule area affects.
void resetCaches()
Reset all item and directive caches, saving the current state first.
const std::unordered_set< SCH_DIRECTIVE_LABEL * > & GetDirectives() const
Return the set of all directive labels attached to the rule area border.
void addDirective(SCH_DIRECTIVE_LABEL *label)
Add a directive label which applies to items within ths rule area.
std::vector< int > ViewGetLayers() const override
Return the layers the item is drawn on (which may be more than its "home" layer)
wxString GetFriendlyName() const override
virtual void Plot(PLOTTER *aPlotter, bool aBackground, const SCH_PLOT_OPTS &aPlotOpts, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aDimmed) override
Plot the item to aPlotter.
std::unordered_set< SCH_DIRECTIVE_LABEL * > m_directives
All SCH_DIRECTIVE_LABEL objects attached to the rule area border. No ownership.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
const std::vector< std::pair< wxString, SCH_ITEM * > > GetResolvedNetclasses(const SCH_SHEET_PATH *aSheetPath) const
Resolve the netclass of this rule area from connected directive labels.
static std::vector< std::pair< SCH_RULE_AREA *, SCH_SCREEN * > > UpdateRuleAreasInScreens(std::unordered_set< SCH_SCREEN * > &screens, KIGFX::SCH_VIEW *view)
Update all rule area connectvity / caches in the given sheet paths.
std::unordered_set< SCH_ITEM * > m_items
All SCH_ITEM objects currently contained or intersecting the rule area. No ownership.
const std::unordered_set< KIID > & GetPastContainedItems() const
std::unordered_set< KIID > m_itemIDs
wxString GetClass() const override
Return the class name.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Get the message panel info for the rule area.
EE_RTREE & Items()
Get the full RTree, usually for iterating.
Definition sch_screen.h:117
std::vector< SHAPE * > MakeEffectiveShapes(bool aEdgeOnly=false) const override
Make a set of SHAPE objects representing the SCH_SHAPE.
Definition sch_shape.h:112
void Plot(PLOTTER *aPlotter, bool aBackground, const SCH_PLOT_OPTS &aPlotOpts, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aDimmed) override
Plot the item to aPlotter.
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
STROKE_PARAMS GetStroke() const override
Definition sch_shape.h:58
int GetEffectiveWidth() const override
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Schematic symbol object.
Definition sch_symbol.h:76
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
std::vector< SCH_PIN * > GetPins(const SCH_SHEET_PATH *aSheet) const
Retrieve a list of the SCH_PINs for the given sheet path.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
int SegmentCount() const
Return the number of segments in this line chain.
const SEG CSegment(int aIndex) const
Return a constant copy of the aIndex segment in the line chain.
int OutlineCount() const
Return the number of outlines in the set.
const SHAPE_LINE_CHAIN & COutline(int aIndex) const
Represent a simple polygon consisting of a zero-thickness closed chain of connected line segments.
LINE_STYLE GetLineStyle() const
KIGFX::COLOR4D GetColor() const
#define _(s)
@ NO_RECURSE
Definition eda_item.h:52
FILL_T
Definition eda_shape.h:56
@ FILLED_WITH_COLOR
Definition eda_shape.h:60
@ NO_FILL
Definition eda_shape.h:57
@ FILLED_WITH_BG_BODYCOLOR
Definition eda_shape.h:59
@ FILLED_SHAPE
Fill with object color.
Definition eda_shape.h:58
@ LAYER_RULE_AREAS
Definition layer_ids.h:465
@ LAYER_DEVICE_BACKGROUND
Definition layer_ids.h:484
@ LAYER_NOTES_BACKGROUND
Definition layer_ids.h:469
@ LAYER_SELECTION_SHADOWS
Definition layer_ids.h:495
@ REPAINT
Item needs to be redrawn.
Definition view_item.h:58
#define TYPE_HASH(x)
Definition property.h:74
#define REGISTER_TYPE(x)
static struct SCH_RULE_AREA_DESC _SCH_RULE_AREA_DESC
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
static bool Collide(const SHAPE_CIRCLE &aA, const SHAPE_CIRCLE &aB, int aClearance, int *aActual, VECTOR2I *aLocation, VECTOR2I *aMTV)
BOX2I boundingBox(T aObject, int aLayer)
Used by SHAPE_INDEX to get the bounding box of a generic T object.
Definition shape_index.h:62
LINE_STYLE
Dashed line types.
The EE_TYPE struct provides a type-specific auto-range iterator to the RTree.
Definition sch_rtree.h:195
KIBIS_PIN * pin
@ SCH_FIELD_T
Definition typeinfo.h:154
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:175
@ SCH_RULE_AREA_T
Definition typeinfo.h:174
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:695