/bin/std/flash/geom/Point.hx
http://github.com/Yoomee/clippy · Haxe · 27 lines · 20 code · 7 blank · 0 comment · 0 complexity · fbf64f3f304cb8f72d370b8a93447ecf MD5 · raw file
- package flash.geom;
- #if !flash8
- "This class is only accesible in Flash8"
- #end
- extern class Point<T> {
- var x : T;
- var y : T;
- var length : Float;
- function new( x : T, y : T ) : Void;
- function normalize( length : T ) : Void;
- function add( p : Point<T> ) : Point<T>;
- function subtract( p : Point<T> ) : Point<T>;
- function equals( p : Point<T> ) : Bool;
- function offset( dx : T, dy : T ) : Void;
- function clone() : Point<T>;
- function toString() : String;
- static function distance<T>( p1 : Point<T>, p2 : Point<T> ) : T;
- static function interpolate<T>( p1 : Point<T>, p2 : Point<T>, f : T ) : Point<T>;
- static function polar<T>( dist : T, angle : T ) : Point<T>;
- }