<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jimandi.com/SDK/index.php?action=history&amp;feed=atom&amp;title=Box2D</id>
	<title>Box2D - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jimandi.com/SDK/index.php?action=history&amp;feed=atom&amp;title=Box2D"/>
	<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=Box2D&amp;action=history"/>
	<updated>2026-10-25T11:57:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://jimandi.com/SDK/index.php?title=Box2D&amp;diff=65&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;link=Low Level Geometry Category:SDK This object represents a 2d bounding box for an object or group of objects.  ==Constructor==   ===Box2D()...&quot;</title>
		<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=Box2D&amp;diff=65&amp;oldid=prev"/>
		<updated>2021-08-04T03:30:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/SDK/index.php/File:Back.jpg&quot; title=&quot;File:Back.jpg&quot;&gt;right|50px|link=Low Level Geometry&lt;/a&gt; &lt;a href=&quot;/SDK/index.php?title=Category:SDK&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:SDK (page does not exist)&quot;&gt;Category:SDK&lt;/a&gt; This object represents a 2d bounding box for an object or group of objects.  ==Constructor==   ===Box2D()...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Back.jpg|right|50px|link=Low Level Geometry]]&lt;br /&gt;
[[Category:SDK]]&lt;br /&gt;
This object represents a 2d bounding box for an object or group of objects.&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Box2D()===&lt;br /&gt;
This construct an uninitialized box with invalid values which can be tested for using the .IsInvalid property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Box2D (Point2D p1, Point2D p2)===&lt;br /&gt;
Create a box which bounds the 2 passed in points&lt;br /&gt;
P1 (Point2D) first point within the box&lt;br /&gt;
P1 (Point2D) second point within the box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Box2D(Box2D box)===&lt;br /&gt;
A new Box2D with the same values as the passed box (Box2D) Note: an existing box to copy values from&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===.BLC=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (Point2D) a point representing the bottom left corner of the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.BRC=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (Point2D) a point representing the bottom right corner of the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.Centre=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (Point2D) a point representing the centre of the bounding box (British spelling)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.Center=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (Point2D) a point representing the center of the bounding box (U.S spelling)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.IsInvalid=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (bool) true if the box is in an invalid state Note: not initialised or SetInvalid called&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.MinX=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the minimum X value for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.MinY=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the minimum Y value for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.MaxX=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the maximum X value for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.MaxY=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the maximum Y value for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.XLength=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the length in X for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.YLength=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the length in Y for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.MaxLength=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the length of the longest side for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.MinLength=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (double) the length of the shortest side for the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.TRC=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (Point2D) a point representing the top right corner of the bounding box&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.TLC=== &lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (Point2D) a point representing the top left corner of the bounding box&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:Expand( double offset_dist)===&lt;br /&gt;
Expand this box on all sides by passed amount &lt;br /&gt;
::''offset_dist(double) distance to offset box by''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:IsInside( Point2D point, double tol)===&lt;br /&gt;
'''Returns:''' (bool) true if passed point is inside this box within passed tolerance (which may be 0.0). &lt;br /&gt;
::''point (Point2D) point to test to see if inside box''&lt;br /&gt;
::''tol(double) tolerance value to use when checking if inside box''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:IsInsideOrOn( Point2D point, double tol)===&lt;br /&gt;
'''Returns:''' (bool) true if passed point is inside or on the edge of this box within passed tolerance (which may be 0.0).&lt;br /&gt;
::''point (Point2D) point to test to see if inside or on box ''&lt;br /&gt;
::''tol (double) tolerance value to use when checking if inside box''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:IsInside( Box2D box, bool on_counts_as_int, double tol)===&lt;br /&gt;
'''Returns:''' (bool) true if passed box intersects this box within passed tolerance (which may be 0.0).&lt;br /&gt;
::''box (Box2D) box to test to see if intersects this box''&lt;br /&gt;
::''on_counts_as_int(bool) if true boxes with shared edges count as intersections''&lt;br /&gt;
::''tol(double) tolerance value to use when checking if inside box''&lt;br /&gt;
&lt;br /&gt;
===:Intersects( Box2D box, double tol)===&lt;br /&gt;
'''Returns:''' (bool) true if passed box is inside this box within passed tolerance (which may be 0.0).&lt;br /&gt;
::''box (Box2D) box to test to see if inside this box''&lt;br /&gt;
::''tol(double) tolerance value to use when checking if inside box''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:Merge( double x, double y)===&lt;br /&gt;
Merge a point with the passed x and y values into the box updating limits&lt;br /&gt;
::''x(double) x value for point being merged ''&lt;br /&gt;
::''y(double) y value for point being merged''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:Merge( Point2D point)===&lt;br /&gt;
Merge a point  into the box updating limits point (Point2D) point being merged&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:Merge( Box2D box)===&lt;br /&gt;
Merge another box into this box, updating the limits box (Box2D) box being merged&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:SetInvalid()===&lt;br /&gt;
Set the box to invalid state&lt;br /&gt;
&lt;br /&gt;
[[File:Back.jpg|right|50px|link=Low Level Geometry]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>