mirror of
https://github.com/photonstorm/phaser
synced 2024-12-02 09:30:06 +00:00
28 lines
1,006 B
TypeScript
28 lines
1,006 B
TypeScript
|
/// <reference path="../Game.d.ts" />
|
||
|
module Phaser {
|
||
|
class Line {
|
||
|
constructor(x1?: number, y1?: number, x2?: number, y2?: number);
|
||
|
public x1: number;
|
||
|
public y1: number;
|
||
|
public x2: number;
|
||
|
public y2: number;
|
||
|
public clone(output?: Line): Line;
|
||
|
public copyFrom(source: Line): Line;
|
||
|
public copyTo(target: Line): Line;
|
||
|
public setTo(x1?: number, y1?: number, x2?: number, y2?: number): Line;
|
||
|
public width : number;
|
||
|
public height : number;
|
||
|
public length : number;
|
||
|
public getY(x: number): number;
|
||
|
public angle : number;
|
||
|
public slope : number;
|
||
|
public perpSlope : number;
|
||
|
public yIntercept : number;
|
||
|
public isPointOnLine(x: number, y: number): bool;
|
||
|
public isPointOnLineSegment(x: number, y: number): bool;
|
||
|
public intersectLineLine(line): any;
|
||
|
public perp(x: number, y: number, output?: Line): Line;
|
||
|
public toString(): string;
|
||
|
}
|
||
|
}
|