-
-
Notifications
You must be signed in to change notification settings - Fork 351
Provide a generic overload for IShapeF #705
Copy link
Copy link
Open
Labels
enhancementImprovement to an existing feature: better defaults, expanded support, or quality-of-lifeImprovement to an existing feature: better defaults, expanded support, or quality-of-lifescope: apiPublic API surface: types, signatures, properties, interfaces, or serialization contractsPublic API surface: types, signatures, properties, interfaces, or serialization contractsscope: physicsCollisions subsystem: broadphase/narrowphase detection, spatial queries, collision layersCollisions subsystem: broadphase/narrowphase detection, spatial queries, collision layers
Milestone
Metadata
Metadata
Assignees
Labels
enhancementImprovement to an existing feature: better defaults, expanded support, or quality-of-lifeImprovement to an existing feature: better defaults, expanded support, or quality-of-lifescope: apiPublic API surface: types, signatures, properties, interfaces, or serialization contractsPublic API surface: types, signatures, properties, interfaces, or serialization contractsscope: physicsCollisions subsystem: broadphase/narrowphase detection, spatial queries, collision layersCollisions subsystem: broadphase/narrowphase detection, spatial queries, collision layers
Since
IShapeFis an interface which is implemented bystructs, those will get boxed that allocates and can trigger garbage collection.providing an overload can prevent this. E.g. in the Shape class.
One could get a step further and obsolete the methods that take the interface and provide information why they should not be used.
If interested in this, I could look into and make pull requests for those changes.