C# Class YLScsDrawing.Geometry.Vector

Mostrar archivo Open project: emcf/WolfEngine Class Usage Examples

Public Methods

Method Description
CrossProduct ( Vector v ) : double
DistancePointLine ( PointF pt, PointF lnA, PointF lnB ) : double
DotProduct ( Vector v ) : double
IsCCW ( PointF pt1, PointF pt2, PointF pt3 ) : bool
IsClockwise ( PointF pt1, PointF pt2, PointF pt3 ) : bool
Rotate ( int Degree ) : void
ToPointF ( ) : PointF
Vector ( PointF pt ) : System
Vector ( PointF st, PointF end ) : System
Vector ( double x, double y ) : System
operator ( ) : Vector

Method Details

CrossProduct() public method

public CrossProduct ( Vector v ) : double
v Vector
return double

DistancePointLine() public static method

public static DistancePointLine ( PointF pt, PointF lnA, PointF lnB ) : double
pt System.Drawing.PointF
lnA System.Drawing.PointF
lnB System.Drawing.PointF
return double

DotProduct() public method

public DotProduct ( Vector v ) : double
v Vector
return double

IsCCW() public static method

public static IsCCW ( PointF pt1, PointF pt2, PointF pt3 ) : bool
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
pt3 System.Drawing.PointF
return bool

IsClockwise() public static method

public static IsClockwise ( PointF pt1, PointF pt2, PointF pt3 ) : bool
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
pt3 System.Drawing.PointF
return bool

Rotate() public method

public Rotate ( int Degree ) : void
Degree int
return void

ToPointF() public method

public ToPointF ( ) : PointF
return System.Drawing.PointF

Vector() public method

public Vector ( PointF pt ) : System
pt System.Drawing.PointF
return System

Vector() public method

public Vector ( PointF st, PointF end ) : System
st System.Drawing.PointF
end System.Drawing.PointF
return System

Vector() public method

public Vector ( double x, double y ) : System
x double
y double
return System

operator() public static method

public static operator ( ) : Vector
return Vector