Line 1: |
Line 1: |
| | | |
− | === Bounding Boxes ===
| + | A bounding box is a structure the contains the left, bottom, right, and top edges of a box. |
| | | |
− | A bounding box is a structure the contains the left, bottom, right, and top edges of a box.
| |
| Its type is TI.cpBB. | | Its type is TI.cpBB. |
| + | |
| + | |
| | | |
| ---- | | ---- |
− | ===== BB =====
| |
| | | |
| + | ===== BB ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bb = physics.BB(l, b, r, t) |
− | bb = physics.BB(l, b, r, t) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | l | + | | l |
− | | '''in''' number | + | | '''in''' number |
− | | left | + | | left |
| |- | | |- |
− | | b | + | | b |
− | | '''in''' number | + | | '''in''' number |
− | | bottom | + | | bottom |
| |- | | |- |
− | | r | + | | r |
− | | '''in''' number | + | | '''in''' number |
− | | right | + | | right |
| |- | | |- |
− | | t | + | | t |
− | | '''in''' number | + | | '''in''' number |
− | | top | + | | top |
| |- | | |- |
− | | bb | + | | bb |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | A bounding box with boundaries left, bottom, right, and top | + | | A bounding box with boundaries left, bottom, right, and top |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Returns a new bounding box with the given initial edges. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Returns a new bounding box with the given initial edges.
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== b =====
| |
| | | |
| + | ===== b ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bottom = physics.BB:b() |
− | bottom = physics.BB:b() | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | bottom | + | | bottom |
− | | '''out''' number | + | | '''out''' number |
− | | The bottom edge of the bounding box | + | | The bottom edge of the bounding box |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Returns the bottom edge of the bounding box. |
− | Returns the bottom edge of the bounding box. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== clampVect =====
| |
| | | |
| + | ===== clampVect ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">cvec = physics.BB:clampVect(vec) |
− | cvec = physics.BB:clampVect(vec) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | vec | + | | vec |
− | | '''in''' physics.Vect | + | | '''in''' physics.Vect |
− | | A vector | + | | A vector |
| |- | | |- |
− | | cvec | + | | cvec |
− | | '''out''' physics.Vect | + | | '''out''' physics.Vect |
− | | A vector clamped to the bounding box | + | | A vector clamped to the bounding box |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Returns a copy of ''vec'' clamped to the bounding box. |
− | Returns a copy of ''vec'' clamped to the bounding box. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== containsBB =====
| |
| | | |
| + | ===== containsBB ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bool = physics.BB:containsBB(other) |
− | bool = physics.BB:containsBB(other) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | other | + | | other |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The other bounding box | + | | The other bounding box |
| |- | | |- |
− | | bool | + | | bool |
− | | '''out''' boolean | + | | '''out''' boolean |
− | | True if ''self'' completely contains the ''other'' bounding box | + | | True if ''self'' completely contains the ''other'' bounding box |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Determines if a bouding box contains another bounding box. |
− | Determines if a bouding box contains another bounding box. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== containsVect =====
| |
| | | |
| + | ===== containsVect ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bool = physics.BB:containsVect(vec) |
− | bool = physics.BB:containsVect(vec) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | vec | + | | vec |
− | | '''in''' physics.Vect | + | | '''in''' physics.Vect |
− | | A vector | + | | A vector |
| |- | | |- |
− | | bool | + | | bool |
− | | '''out''' boolean | + | | '''out''' boolean |
− | | True if ''self'' contains vector ''vec'' | + | | True if ''self'' contains vector ''vec'' |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Determines if a bounding box contains a vector. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Determines if a bounding box contains a [[#vector|vector]].
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== expand =====
| |
| | | |
| + | ===== expand ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bb = phyics.BB:expand(vec) |
− | bb = phyics.BB:expand(vec) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | vec | + | | vec |
− | | '''in''' physics.Vect | + | | '''in''' physics.Vect |
− | | A vector | + | | A vector |
| |- | | |- |
− | | bb | + | | bb |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | The bounding box ''self'' expanded to include vector ''vec'' | + | | The bounding box ''self'' expanded to include vector ''vec'' |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Returns the bounding box that contains both ''self'' and ''vec''. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Returns the bounding box that contains both ''self'' and ''vec''.
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== intersects =====
| |
| | | |
| + | ===== intersects ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bool = physics.BB:intersects(other) |
− | bool = physics.BB:intersects(other) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | other | + | | other |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The other bounding box | + | | The other bounding box |
| |- | | |- |
− | | bool | + | | bool |
− | | '''out''' boolean | + | | '''out''' boolean |
− | | True if ''self'' intersects the ''other'' bounding box | + | | True if ''self'' intersects the ''other'' bounding box |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Determines if two bounding boxes intersect. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Determines if two bounding boxes intersect.
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== l =====
| |
| | | |
| + | ===== l ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">left = physics.BB:l() |
− | left = physics.BB:l() | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | left | + | | left |
− | | '''out''' number | + | | '''out''' number |
− | | The left edge of the bounding box | + | | The left edge of the bounding box |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Returns the left edge of the bounding box. |
− | Returns the left edge of the bounding box. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== merge =====
| |
| | | |
| + | ===== merge ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">bb = physics.BB:merge(other) |
− | bb = physics.BB:merge(other) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | other | + | | other |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The other bounding box | + | | The other bounding box |
| |- | | |- |
− | | bb | + | | bb |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | The bounding box that contains both ''self'' and the ''other'' bounding box | + | | The bounding box that contains both ''self'' and the ''other'' bounding box |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Returns the bounding box that contains both ''self'' and the ''other'' bounding box. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Returns the bounding box that contains both ''self'' and the ''other'' bounding box.
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== setb =====
| |
| | | |
| + | ===== setb ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">self = physics.BB:setb(bottom) |
− | self = physics.BB:setb(bottom) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | bottom | + | | bottom |
− | | '''in''' number | + | | '''in''' number |
− | | The new value for the bottom edge of the bounding box | + | | The new value for the bottom edge of the bounding box |
| |- | | |- |
− | | self | + | | self |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | The input bounding box is returned as the output | + | | The input bounding box is returned as the output |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Sets the bottom edge of the bounding box to a new ''value''. Returns ''self''. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Sets the bottom edge of the bounding box to a new ''value''. Returns ''self''.
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== r =====
| |
| | | |
| + | ===== r ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">right = physics.BB:r() |
− | right = physics.BB:r() | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | right | + | | right |
− | | '''out''' number | + | | '''out''' number |
− | | The right edge of the bounding box | + | | The right edge of the bounding box |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Returns the right edge of the bounding box. |
− | Returns the right edge of the bounding box. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== setl =====
| |
| | | |
| + | ===== setl ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">self = physics.BB:setl(left) |
− | self = physics.BB:setl(left) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | left | + | | left |
− | | '''in''' number | + | | '''in''' number |
− | | The new value for the left edge of the bounding box | + | | The new value for the left edge of the bounding box |
| |- | | |- |
− | | self | + | | self |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | The input bounding box is returned as the output | + | | The input bounding box is returned as the output |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Sets the left edge of the bounding box to a new ''value''. Returns ''self''. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Sets the left edge of the bounding box to a new ''value''. Returns ''self''.
| |
− | | |
− | Introduced in platform.apiLevel = '2.0' | |
| | | |
| ---- | | ---- |
− | ===== setr =====
| |
| | | |
| + | ===== setr ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">self = physics.BB:setr(right) |
− | self = physics.BB:setr(right) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | right | + | | right |
− | | '''in''' number | + | | '''in''' number |
− | | The new value for the right edge of the bounding box | + | | The new value for the right edge of the bounding box |
| |- | | |- |
− | | self | + | | self |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | The input bounding box is returned as the output | + | | The input bounding box is returned as the output |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Sets the right edge of the bounding box to a new ''value''. Returns ''self''. |
− | Sets the right edge of the bounding box to a new ''value''. Returns ''self''. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== sett =====
| |
| | | |
| + | ===== sett ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">self = physics.BB:sett(top) |
− | self = physics.BB:sett(top) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | top | + | | top |
− | | '''in''' number | + | | '''in''' number |
− | | The new value for the top edge of the bounding box | + | | The new value for the top edge of the bounding box |
| |- | | |- |
− | | self | + | | self |
− | | '''out''' physics.BB | + | | '''out''' physics.BB |
− | | The input bounding box is returned as the output | + | | The input bounding box is returned as the output |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Sets the top edge of the bounding box to a new ''value''. Returns ''self''. |
− | Sets the top edge of the bounding box to a new ''value''. Returns ''self''. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== t =====
| |
| | | |
| + | ===== t ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">top = physics.BB:t() |
− | top = physics.BB:t() | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | top | + | | top |
− | | '''out''' number | + | | '''out''' number |
− | | The top edge of the bounding box | + | | The top edge of the bounding box |
− | |}<!-- table end --> | + | |} |
− | | + | <!-- table end --> |
− | <br/> | + | <br> Returns the top edge of the bounding box. |
− | Returns the top edge of the bounding box. | |
| | | |
− | Introduced in platform.apiLevel = '2.0' | + | Introduced in platform.apiLevel = '2.0' |
| | | |
| ---- | | ---- |
− | ===== wrapVect =====
| |
| | | |
| + | ===== wrapVect ===== |
| | | |
− | <!-- code start--> | + | <!-- code start--> |
− | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd"> | + | <pre style="margin-left:20px; font-size:1.4em; background-color:#fdfdfd">wvec = physics.BB:wrapVect(vec) |
− | wvec = physics.BB:wrapVect(vec) | + | </pre><!-- code end--> |
− | </pre><!-- code end--> | + | <!-- table start --> |
| | | |
− | | + | {| border="1" width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" |
− | <!-- table start -->
| + | |- |
− | {| border=1 width="100%" cellspacing="0" cellpadding="4" style="border-color:#eee" class="wikitable" | + | ! Parameter |
− | <!-- header row start -->
| + | ! Type |
− | ! Parameter !! Type !! Description | + | ! Description <!-- header row end --> |
− | <!-- header row end --> | |
| |- | | |- |
− | | self | + | | self |
− | | '''in''' physics.BB | + | | '''in''' physics.BB |
− | | The input bounding box | + | | The input bounding box |
| |- | | |- |
− | | vec | + | | vec |
− | | '''in''' physics.Vect | + | | '''in''' physics.Vect |
− | | A vector | + | | A vector |
| |- | | |- |
− | | wvec | + | | wvec |
− | | '''out''' physics.Vect | + | | '''out''' physics.Vect |
− | | A vector wrapped to the bounding box | + | | A vector wrapped to the bounding box |
− | |}<!-- table end --> | + | |} |
| + | <!-- table end --> |
| + | <br> Returns a copy of ''vec'' wrapped to the bounding box. |
| | | |
− | <br/>
| + | Introduced in platform.apiLevel = '2.0' |
− | Returns a copy of ''vec'' wrapped to the bounding box.
| |
| | | |
− | Introduced in platform.apiLevel = '2.0'
| |
| | | |
| | | |
| [[Category:Physics_Engine]] | | [[Category:Physics_Engine]] |