| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/3dweb/src/math/ |
Upload File : |
import { Vector2 } from './Vector2';
// Math //////////////////////////////////////////////////////////////////////////////////
export class Box2 {
constructor( min?: Vector2, max?: Vector2 );
max: Vector2;
min: Vector2;
set( min: Vector2, max: Vector2 ): Box2;
setFromPoints( points: Vector2[] ): Box2;
setFromCenterAndSize( center: Vector2, size: Vector2 ): Box2;
clone(): this;
copy( box: Box2 ): this;
makeEmpty(): Box2;
isEmpty(): boolean;
getCenter( target: Vector2 ): Vector2;
getSize( target: Vector2 ): Vector2;
expandByPoint( point: Vector2 ): Box2;
expandByVector( vector: Vector2 ): Box2;
expandByScalar( scalar: number ): Box2;
containsPoint( point: Vector2 ): boolean;
containsBox( box: Box2 ): boolean;
getParameter( point: Vector2 ): Vector2;
intersectsBox( box: Box2 ): boolean;
clampPoint( point: Vector2, target: Vector2 ): Vector2;
distanceToPoint( point: Vector2 ): number;
intersect( box: Box2 ): Box2;
union( box: Box2 ): Box2;
translate( offset: Vector2 ): Box2;
equals( box: Box2 ): boolean;
/**
* @deprecated Use {@link Box2#isEmpty .isEmpty()} instead.
*/
empty(): any;
/**
* @deprecated Use {@link Box2#intersectsBox .intersectsBox()} instead.
*/
isIntersectionBox( b: any ): any;
}