C# Class monoshrub.Points

Mostrar archivo Open project: threerings/monoshrub Class Usage Examples

Public Properties

Property Type Description
ZERO Point

Public Methods

Method Description
Distance ( float x1, float y1, float x2, float y2 ) : float
DistanceSq ( float x1, float y1, float x2, float y2 ) : float
EpsilonEquals ( Point p1, Point p2 ) : bool
EpsilonEquals ( Point p1, Point p2, float epsilon ) : bool
InverseTransform ( float x, float y, float sx, float sy, float rotation, float tx, float ty ) : Point
PointToString ( float x, float y ) : String
Transform ( float x, float y, float sx, float sy, float rotation, float tx, float ty ) : Point
Transform ( float x, float y, float sx, float sy, float sina, float cosa, float tx, float ty ) : Point

Method Details

Distance() public static method

public static Distance ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

DistanceSq() public static method

public static DistanceSq ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

EpsilonEquals() public static method

public static EpsilonEquals ( Point p1, Point p2 ) : bool
p1 Point
p2 Point
return bool

EpsilonEquals() public static method

public static EpsilonEquals ( Point p1, Point p2, float epsilon ) : bool
p1 Point
p2 Point
epsilon float
return bool

InverseTransform() public static method

public static InverseTransform ( float x, float y, float sx, float sy, float rotation, float tx, float ty ) : Point
x float
y float
sx float
sy float
rotation float
tx float
ty float
return Point

PointToString() public static method

public static PointToString ( float x, float y ) : String
x float
y float
return String

Transform() public static method

public static Transform ( float x, float y, float sx, float sy, float rotation, float tx, float ty ) : Point
x float
y float
sx float
sy float
rotation float
tx float
ty float
return Point

Transform() public static method

public static Transform ( float x, float y, float sx, float sy, float sina, float cosa, float tx, float ty ) : Point
x float
y float
sx float
sy float
sina float
cosa float
tx float
ty float
return Point

Property Details

ZERO public_oe static_oe property

public static Point ZERO
return Point