Skip to content

tonnesr/QuadTreeF.MonoGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet

QuadTreeF.MonoGame

MonoGame compatibility layer for QuadTreeF

Extensions

  // From Tonnes.QuadTreeF.RectangleF To Microsoft.Xna.Framework.Rectangle
  Rectangle ToRectangle(this RectangleF rect);
  
  // From Tonnes.QuadTreeF.PointF To Microsoft.Xna.Framework.Point
  Point ToPoint(this PointF point);
  
  // From Tonnes.QuadTreeF.PointF To Microsoft.Xna.Framework.Vector2
  Vector2 ToVector2(this PointF point);

  // From Microsoft.Xna.Framework.Point To Tonnes.QuadTreeF.PointF
  PointF ToPointF(this Point point);
  
  // From Microsoft.Xna.Framework.Vector2 To Tonnes.QuadTreeF.PointF
  PointF ToPointF(this Vector2 vector);

  // From Microsoft.Xna.Framework.Rectangle To Tonnes.QuadTreeF.RectangleF
  RectangleF ToRectangleF(this Rectangle rect);

  // QuadTree<T> extensions:
  void Add<T>(Point point, T value);
  void Add<T>(Vector2 point, T value);

  void Remove<T>(Point point);
  void Remove<T>(Vector2 point);

  bool Contains<T>(Point point);
  bool Contains<T>(Vector2 point);

  QuadNodeF<T> Search<T>(Point point);
  QuadNodeF<T> Search<T>(Vector2 point);
  bool Search<T>(Point point, out QuadNodeF<T> node);
  bool Search<T>(Vector2 point, out QuadNodeF<T> node);
  List<QuadNodeF<T>> Search<T>(Rectangle rectangle);

Compatibility

Compatible with MonoGame dotnet core (netcoreapp3.1)

About

MonoGame extensions for Tonnes.QuadTreeF

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages