KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_api_proto.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) 2024 Jon Evans <[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 modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * 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 <boost/test/unit_test.hpp>
22#include <memory>
23#include <limits>
24#include <import_export.h>
29
30#include <api/board/board_types.pb.h>
31#include <api/common/types/embedded_files.pb.h>
32
33#include <board.h>
34#include <embedded_files.h>
35#include <footprint.h>
36#include <pcb_barcode.h>
37#include <pcb_dimension.h>
38#include <pcb_drill_chart.h>
39#include <pcb_drill_map.h>
40#include <pcb_grid_item.h>
41#include <pad.h>
42#include <pcb_reference_image.h>
43#include <pcb_shape.h>
44#include <pcb_table.h>
45#include <pcb_text.h>
46#include <pcb_textbox.h>
47#include <pcb_track.h>
48#include <zone.h>
49
50
51BOOST_AUTO_TEST_SUITE( ApiProto )
52
61
62
64{
65 KI_TEST::LoadBoard( m_settingsManager, "api_kitchen_sink", m_board );
66
67 int barcodeCount = 0;
68 int drillChartCount = 0;
69 int drillMapCount = 0;
70 int referenceImageCount = 0;
71 int tableCount = 0;
72 int textCount = 0;
73 int textBoxCount = 0;
74 int shapeCount = 0;
75
76 for( PCB_TRACK* track : m_board->Tracks() )
77 {
78 switch( track->Type() )
79 {
80 case PCB_TRACE_T:
82 break;
83
84 case PCB_ARC_T:
86 m_board.get() );
87 break;
88
89 case PCB_VIA_T:
91 m_board.get() );
92 break;
93
94 default:
95 wxFAIL;
96 }
97 }
98
99 for( FOOTPRINT* footprint : m_board->Footprints() )
101
102 for( ZONE* zone : m_board->Zones() )
104
105 for( BOARD_ITEM* item : m_board->Drawings() )
106 {
107 switch( item->Type() )
108 {
111 static_cast<PCB_DIM_ALIGNED*>( item ), m_board.get() );
112 break;
113
116 static_cast<PCB_DIM_ORTHOGONAL*>( item ), m_board.get() );
117 break;
118
119 case PCB_DIM_CENTER_T:
121 static_cast<PCB_DIM_CENTER*>( item ), m_board.get() );
122 break;
123
124 case PCB_DIM_LEADER_T:
126 static_cast<PCB_DIM_LEADER*>( item ), m_board.get() );
127 break;
128
129 case PCB_DIM_RADIAL_T:
131 static_cast<PCB_DIM_RADIAL*>( item ), m_board.get() );
132 break;
133
134 case PCB_BARCODE_T:
136 static_cast<PCB_BARCODE*>( item ), m_board.get() );
137 ++barcodeCount;
138 break;
139
142 static_cast<PCB_REFERENCE_IMAGE*>( item ), m_board.get() );
143 ++referenceImageCount;
144 break;
145
148 static_cast<PCB_DRILL_CHART*>( item ), m_board.get() );
149 ++drillChartCount;
150 break;
151
152 case PCB_DRILL_MAP_T:
154 static_cast<PCB_DRILL_MAP*>( item ), m_board.get() );
155 ++drillMapCount;
156 break;
157
158 case PCB_TABLE_T:
159 testProtoFromKiCadObject<kiapi::board::types::Table>( static_cast<PCB_TABLE*>( item ), m_board.get() );
160 ++tableCount;
161 break;
162
163 case PCB_TEXT_T:
165 static_cast<PCB_TEXT*>( item ), m_board.get() );
166 ++textCount;
167 break;
168
169 case PCB_TEXTBOX_T:
171 static_cast<PCB_TEXTBOX*>( item ), m_board.get() );
172 ++textBoxCount;
173 break;
174
175 case PCB_SHAPE_T:
177 static_cast<PCB_SHAPE*>( item ), m_board.get() );
178 ++shapeCount;
179 break;
180
181 default: break;
182 }
183 }
184
185 BOOST_CHECK_GT( barcodeCount, 0 );
186 BOOST_CHECK_GT( drillChartCount, 0 );
187 BOOST_CHECK_GT( drillMapCount, 0 );
188 BOOST_CHECK_GT( referenceImageCount, 0 );
189 BOOST_CHECK_GT( tableCount, 0 );
190 BOOST_CHECK_GT( textCount, 0 );
191 BOOST_CHECK_GT( textBoxCount, 0 );
192 BOOST_CHECK_GT( shapeCount, 0 );
193}
194
195
196BOOST_AUTO_TEST_CASE( FootprintExcludeFromSimulationRoundTrip )
197{
198 BOARD board;
199 FOOTPRINT footprint( &board );
200
201 footprint.SetExcludedFromSim( true );
202
204}
205
206
208{
209 KI_TEST::LoadBoard( m_settingsManager, "api_kitchen_sink", m_board );
210
211 PCB_DRILL_CHART* chart = nullptr;
212
213 for( BOARD_ITEM* item : m_board->Drawings() )
214 {
215 if( item->Type() == PCB_DRILL_CHART_T )
216 {
217 chart = static_cast<PCB_DRILL_CHART*>( item );
218 break;
219 }
220 }
221
222 BOOST_REQUIRE( chart );
223
224 google::protobuf::Any any;
225 chart->Serialize( any );
226 kiapi::board::types::DrillChart proto;
227 BOOST_REQUIRE( any.UnpackTo( &proto ) );
228 BOOST_REQUIRE_GT( proto.columns_size(), 0 );
229 BOOST_CHECK_EQUAL( proto.columns( 0 ).width().value_nm(), 16000000 );
230
231 for( int64_t width : { int64_t( 0 ), int64_t( GENERATED_TABLE_MAX_COLUMN_WIDTH ) } )
232 {
233 proto.mutable_columns( 0 )->mutable_width()->set_value_nm( width );
234 any.PackFrom( proto );
235 PCB_DRILL_CHART restored( m_board.get() );
236 BOOST_REQUIRE( restored.Deserialize( any ) );
237 BOOST_CHECK_EQUAL( restored.Columns().front().m_Width, width );
238 }
239
240 for( int64_t width : { int64_t( -1 ), int64_t( GENERATED_TABLE_MAX_COLUMN_WIDTH ) + 1,
241 std::numeric_limits<int64_t>::max() } )
242 {
243 proto.mutable_columns( 0 )->mutable_width()->set_value_nm( width );
244 any.PackFrom( proto );
245 PCB_DRILL_CHART restored( m_board.get() );
246 BOOST_REQUIRE( restored.Deserialize( any ) );
247 BOOST_CHECK_EQUAL( restored.Columns().front().m_Width,
248 width < 0 ? 0 : GENERATED_TABLE_MAX_COLUMN_WIDTH );
249 }
250}
251
252
254{
255 KI_TEST::LoadBoard( m_settingsManager, "padstacks", m_board );
256
257 for( PCB_TRACK* track : m_board->Tracks() )
258 {
259 switch( track->Type() )
260 {
261 case PCB_VIA_T:
262 testProtoFromKiCadObject<kiapi::board::types::Via>( static_cast<PCB_VIA*>( track ), m_board.get() );
263 break;
264
265 default:
266 wxFAIL;
267 }
268 }
269
270 for( FOOTPRINT* footprint : m_board->Footprints() )
272}
273
274
276{
277 KI_TEST::LoadBoard( m_settingsManager, "api_kitchen_sink", m_board );
278
279 for( const FOOTPRINT* fp : m_board->Footprints() )
280 {
281 if( fp->EmbeddedFileMap().empty() )
282 continue;
283
284 BOOST_TEST_CONTEXT( wxString::Format( wxS( "Footprint %s embedded files" ), fp->m_Uuid.AsStdString() ) )
285 {
286 google::protobuf::Any any;
287 fp->Serialize( any );
288
289 kiapi::board::types::FootprintInstance proto;
290 BOOST_CHECK( any.UnpackTo( &proto ) );
291
292 BOOST_CHECK_GT( proto.embedded_files().files_size(), 0 );
293
294 const kiapi::common::types::EmbeddedFile& file = proto.embedded_files().files( 0 );
295 BOOST_CHECK( !file.data().empty() );
296
297 std::unique_ptr<FOOTPRINT> roundTripped = std::make_unique<FOOTPRINT>( m_board.get() );
298 BOOST_CHECK( roundTripped->Deserialize( any ) );
299
300 for( const auto& [name, expected] : fp->EmbeddedFileMap() )
301 {
302 const EMBEDDED_FILES::EMBEDDED_FILE* actual = roundTripped->GetEmbeddedFile( name );
303 BOOST_CHECK_MESSAGE( actual, wxString::Format( wxS( "Embedded file '%s' missing after round-trip" ), name ).c_str() );
304 BOOST_CHECK_EQUAL( magic_enum::enum_name( expected->type ), magic_enum::enum_name( actual->type ) );
305 BOOST_CHECK_EQUAL( expected->data_hash, actual->data_hash );
306 BOOST_CHECK_EQUAL( expected->compressedEncodedData, actual->compressedEncodedData );
307 }
308 }
309 }
310}
311
312
319BOOST_FIXTURE_TEST_CASE( CopperThievingZoneRoundTrip, PROTO_TEST_FIXTURE )
320{
321 m_board = std::make_unique<BOARD>();
322
323 ZONE* zone = new ZONE( m_board.get() );
324 zone->SetLayer( F_Cu );
325 zone->AppendCorner( VECTOR2I( 0, 0 ), -1 );
326 zone->AppendCorner( VECTOR2I( pcbIUScale.mmToIU( 5 ), 0 ), -1 );
327 zone->AppendCorner( VECTOR2I( pcbIUScale.mmToIU( 5 ), pcbIUScale.mmToIU( 5 ) ), -1 );
328 zone->AppendCorner( VECTOR2I( 0, pcbIUScale.mmToIU( 5 ) ), -1 );
330
331 THIEVING_SETTINGS thieving;
333 thieving.element_size = pcbIUScale.mmToIU( 0.75 );
334 thieving.gap = pcbIUScale.mmToIU( 2.0 );
335 thieving.line_width = pcbIUScale.mmToIU( 0.4 );
336 thieving.stagger = true;
337 thieving.orientation = EDA_ANGLE( 15.0, DEGREES_T );
338 zone->SetThievingSettings( thieving );
339
340 m_board->Add( zone );
341
342 google::protobuf::Any any;
343 BOOST_REQUIRE_NO_THROW( zone->Serialize( any ) );
344
345 kiapi::board::types::Zone proto;
346 BOOST_REQUIRE( any.UnpackTo( &proto ) );
347 BOOST_REQUIRE( proto.has_copper_settings() );
348 BOOST_REQUIRE( proto.copper_settings().has_thieving_settings() );
349
350 std::unique_ptr<ZONE> roundTripped = std::make_unique<ZONE>( m_board.get() );
351 BOOST_REQUIRE( roundTripped->Deserialize( any ) );
352
353 BOOST_CHECK( roundTripped->GetFillMode() == ZONE_FILL_MODE::COPPER_THIEVING );
354 // A board with no netinfo list returns GetNetCode() == -1 for an unbound zone.
355 // The invariant we want is "no real net assigned"; netcode > 0 would mean a leak.
356 BOOST_CHECK_LE( roundTripped->GetNetCode(), 0 );
357
358 const THIEVING_SETTINGS& loaded = roundTripped->GetThievingSettings();
359 BOOST_CHECK( loaded.pattern == THIEVING_PATTERN::SQUARES );
360 BOOST_CHECK_EQUAL( loaded.element_size, thieving.element_size );
361 BOOST_CHECK_EQUAL( loaded.gap, thieving.gap );
362 BOOST_CHECK_EQUAL( loaded.line_width, thieving.line_width );
363 BOOST_CHECK_EQUAL( loaded.stagger, true );
364 BOOST_CHECK( loaded.orientation.GetAngle() == EDA_ANGLE( 15.0, DEGREES_T ) );
365}
366
367
369{
370 const auto makeGridItem =
371 []()
372 {
373 return std::make_unique<PCB_GRID_ITEM>( nullptr );
374 };
375
376 PCB_GRID_ITEM cartesian( nullptr );
378 cartesian.SetPosition( VECTOR2I( 1000000, -2000000 ) );
379 cartesian.SetOrientationDegrees( 30.0 );
380 cartesian.SetExtent( VECTOR2I( 5000000, 4000000 ) );
381 cartesian.SetSpacing( VECTOR2I( 250000, 500000 ) );
382 cartesian.SetAssignedPriority( 3 );
383 cartesian.SetTickInterval( 5 );
384 cartesian.SetAffectsRouting( false );
385 cartesian.SetLocked( true );
386
388
389 PCB_GRID_ITEM polar( nullptr );
391 polar.SetPosition( VECTOR2I( -750000, 125000 ) );
392 polar.SetRadiusExtent( 8000000 );
393 polar.SetRadiusSpacing( 1000000 );
394 polar.SetPhiExtentDegrees( 270.0 );
395 polar.SetPhiSpacingDegrees( 7.5 );
396 polar.SetAssignedPriority( 1 );
397 polar.SetAffectsCursor( false );
398 polar.SetAffectsPlacement( false );
399
401
402 // The polar half of the grid must survive, not just the shared linear fields.
403 google::protobuf::Any any;
404 polar.Serialize( any );
405
406 std::unique_ptr<PCB_GRID_ITEM> roundTripped = makeGridItem();
407 BOOST_REQUIRE( roundTripped->Deserialize( any ) );
408
409 BOOST_CHECK( roundTripped->GetGridItemType() == PCB_GRID_TYPE::POLAR );
410 BOOST_CHECK_EQUAL( roundTripped->GetRadiusExtent(), 8000000 );
411 BOOST_CHECK_EQUAL( roundTripped->GetRadiusSpacing(), 1000000 );
412 BOOST_CHECK( roundTripped->GetPhiExtent() == EDA_ANGLE( 270.0, DEGREES_T ) );
413 BOOST_CHECK( roundTripped->GetPhiSpacing() == EDA_ANGLE( 7.5, DEGREES_T ) );
414 BOOST_CHECK_EQUAL( roundTripped->GetAffectsCursor(), false );
415 BOOST_CHECK_EQUAL( roundTripped->GetAffectsRouting(), true );
416 BOOST_CHECK_EQUAL( roundTripped->GetAffectsPlacement(), false );
417 BOOST_CHECK_EQUAL( roundTripped->IsLocked(), false );
418}
419
420
421BOOST_AUTO_TEST_CASE( PadCustomShapeProxyItems )
422{
423 BOARD board;
424 FOOTPRINT footprint( &board );
425 PAD pad( &footprint );
426
427 auto numberBox = std::make_shared<PCB_SHAPE>( &pad, SHAPE_T::RECTANGLE );
428 numberBox->SetIsProxyItem();
429
430 auto spokeTemplate = std::make_shared<PCB_SHAPE>( &pad, SHAPE_T::SEGMENT );
431 spokeTemplate->SetIsProxyItem();
432
433 auto plainShape = std::make_shared<PCB_SHAPE>( &pad, SHAPE_T::SEGMENT );
434
435 google::protobuf::Any numberBoxAny;
436 numberBox->Serialize( numberBoxAny );
437
438 kiapi::board::types::BoardGraphicShape numberBoxProto;
439 BOOST_REQUIRE( numberBoxAny.UnpackTo( &numberBoxProto ) );
440 BOOST_REQUIRE( numberBoxProto.has_pad_custom_shape_options() );
441 BOOST_CHECK( numberBoxProto.pad_custom_shape_options().is_number_box() );
442
443 google::protobuf::Any spokeAny;
444 spokeTemplate->Serialize( spokeAny );
445
446 kiapi::board::types::BoardGraphicShape spokeProto;
447 BOOST_REQUIRE( spokeAny.UnpackTo( &spokeProto ) );
448 BOOST_REQUIRE( spokeProto.has_pad_custom_shape_options() );
449 BOOST_CHECK( spokeProto.pad_custom_shape_options().is_thermal_spoke_template() );
450
451 google::protobuf::Any plainAny;
452 plainShape->Serialize( plainAny );
453
454 kiapi::board::types::BoardGraphicShape plainProto;
455 BOOST_REQUIRE( plainAny.UnpackTo( &plainProto ) );
456 BOOST_CHECK( !plainProto.has_pad_custom_shape_options() );
457
458 // A role arriving on a mismatched shape type is ignored
459 google::protobuf::Any mismatchedAny;
460 spokeTemplate->Serialize( mismatchedAny );
461
462 kiapi::board::types::BoardGraphicShape mismatchedProto;
463 BOOST_REQUIRE( mismatchedAny.UnpackTo( &mismatchedProto ) );
464 mismatchedProto.clear_shape();
465 mismatchedProto.mutable_shape()->mutable_rectangle()->mutable_top_left()->set_x_nm( 0 );
466 mismatchedProto.mutable_shape()->mutable_rectangle()->mutable_top_left()->set_y_nm( 0 );
467 mismatchedProto.mutable_shape()->mutable_rectangle()->mutable_bottom_right()->set_x_nm( 1 );
468 mismatchedProto.mutable_shape()->mutable_rectangle()->mutable_bottom_right()->set_y_nm( 1 );
469 mismatchedAny.PackFrom( mismatchedProto );
470
471 PCB_SHAPE mismatched( &pad, SHAPE_T::RECTANGLE );
472 BOOST_REQUIRE( mismatched.Deserialize( mismatchedAny ) );
473 BOOST_CHECK( !mismatched.IsProxyItem() );
474}
475
476
const char * name
void testProtoFromKiCadObject(KiCadClass *aInput, Factory &&aCreateOutput)
constexpr EDA_IU_SCALE pcbIUScale
Definition base_units.h:128
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
void SetLocked(bool aLocked) override
Definition board_item.h:418
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:410
EDA_ANGLE GetAngle() const
Definition eda_angle.h:533
void SetExcludedFromSim(bool aExclude=true)
Definition footprint.h:1055
Definition pad.h:61
For better understanding of the points that make a dimension:
Mark the center of a circle or arc with a cross shape.
A leader is a dimension-like object pointing to a specific point.
An orthogonal dimension is like an aligned dimension, but the extension lines are locked to the X or ...
A radial dimension indicates either the radius or diameter of an arc or circle.
A drill chart placed on the board, kept in step with the holes.
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
Turns on drill symbols at the holes, for one layer.
std::vector< GENERATED_TABLE_COLUMN > & Columns()
void SetRadiusExtent(int aR)
void SetAffectsRouting(bool aOn)
void SetPosition(const VECTOR2I &aPos) override
void SetRadiusSpacing(int aR)
void SetGridItemType(PCB_GRID_TYPE aType)
void SetExtent(const VECTOR2I &aExtent)
void SetTickInterval(unsigned aInterval)
void SetOrientationDegrees(double aDeg)
void SetSpacing(const VECTOR2I &aSpacing)
void SetPhiExtentDegrees(double aDeg)
void SetAffectsPlacement(bool aOn)
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
void SetPhiSpacingDegrees(double aDeg)
void SetAssignedPriority(unsigned aPriority)
Priority 0 is reserved for the global background grid; user-assigned 0 is bumped to 1.
void SetAffectsCursor(bool aOn)
Object to handle a bitmap image that can be inserted in a PCB.
bool IsProxyItem() const override
Definition pcb_shape.h:153
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
Handle a list of polygons defining a copper zone.
Definition zone.h:70
bool AppendCorner(const VECTOR2I &aPosition, int aHoleIdx, bool aAllowDuplication=false)
Add a new corner to the zone outline (to the main outline or a hole)
Definition zone.cpp:1464
virtual void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
Definition zone.cpp:640
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
Definition zone.cpp:247
void SetFillMode(ZONE_FILL_MODE aFillMode)
Definition zone.cpp:646
void SetThievingSettings(const THIEVING_SETTINGS &aSettings)
Definition zone.h:352
A type-safe container of any type.
Definition ki_any.h:92
@ DEGREES_T
Definition eda_angle.h:30
@ SEGMENT
Definition eda_shape.h:56
@ RECTANGLE
Use RECTANGLE instead of RECT to avoid collision in a Windows header.
Definition eda_shape.h:57
constexpr int GENERATED_TABLE_MAX_COLUMN_WIDTH
A column can be no wider than this.
@ F_Cu
Definition layer_ids.h:60
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
BARCODE class definition.
std::unique_ptr< BOARD > m_board
SETTINGS_MANAGER m_settingsManager
Parameters that drive copper-thieving fill generation.
THIEVING_PATTERN pattern
EDA_ORIENTATION orientation
BOOST_FIXTURE_TEST_CASE(BoardTypes, PROTO_TEST_FIXTURE)
BOOST_AUTO_TEST_CASE(FootprintExcludeFromSimulationRoundTrip)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
VECTOR3I expected(15, 30, 45)
BOOST_TEST_CONTEXT("Test Clearance")
int actual
BOOST_CHECK_EQUAL(result, "25.4")
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition typeinfo.h:80
@ PCB_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition typeinfo.h:98
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition typeinfo.h:95
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition typeinfo.h:89
@ PCB_DRILL_MAP_T
class PCB_DRILL_MAP, drill symbols drawn at the holes
Definition typeinfo.h:240
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition typeinfo.h:96
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
Definition typeinfo.h:85
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition typeinfo.h:84
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
Definition typeinfo.h:81
@ PCB_BARCODE_T
class PCB_BARCODE, a barcode (graphic item)
Definition typeinfo.h:93
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition typeinfo.h:94
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition typeinfo.h:90
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:86
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
Definition typeinfo.h:88
@ PCB_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition typeinfo.h:97
@ PCB_DRILL_CHART_T
class PCB_DRILL_CHART, a live drill chart derived from PCB_TABLE
Definition typeinfo.h:239
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:708