C# Class Smrf.NodeXL.Layouts.VectorTools

Used for vector calculations
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
Angle ( PointF p1, PointF p2, PointF q1, PointF q2 ) : float
Distance ( PointF p, PointF q ) : float
Length ( PointF p ) : float
MidPoint ( PointF p1, PointF p2 ) : PointF
Multiply ( PointF p, float f ) : PointF
Normalize ( PointF p ) : PointF

Method Details

Angle() public static method

public static Angle ( PointF p1, PointF p2, PointF q1, PointF q2 ) : float
p1 System.Drawing.PointF
p2 System.Drawing.PointF
q1 System.Drawing.PointF
q2 System.Drawing.PointF
return float

Distance() public static method

public static Distance ( PointF p, PointF q ) : float
p System.Drawing.PointF
q System.Drawing.PointF
return float

Length() public static method

public static Length ( PointF p ) : float
p System.Drawing.PointF
return float

MidPoint() public static method

public static MidPoint ( PointF p1, PointF p2 ) : PointF
p1 System.Drawing.PointF
p2 System.Drawing.PointF
return System.Drawing.PointF

Multiply() public static method

public static Multiply ( PointF p, float f ) : PointF
p System.Drawing.PointF
f float
return System.Drawing.PointF

Normalize() public static method

public static Normalize ( PointF p ) : PointF
p System.Drawing.PointF
return System.Drawing.PointF