Method | Description | |
---|---|---|
Angle ( System.Windows v1, System.Windows v2 ) : float |
Angle between two vectors in radians.
|
|
BetweenX ( Point p, Point p1, Point p2 ) : bool |
Returns true iff p lies somewhere between p1 and p2 on x-coordinate
|
|
Center ( this rect ) : |
||
ClosestPointToLine ( |
||
CrossProduct ( System.Windows v1, System.Windows v2 ) : float |
Returns the scalar value of the cross product of two vectors.
|
|
Distance ( Point p1, Point p2 ) : double |
Returns distance between p1 and p2.
|
|
Distance ( |
Returns distance between p1 and p2.
|
|
Distance2 ( double x1, double y1, double x2, double y2 ) : double | ||
Distance2 ( Point p1, Point p2 ) : float |
Squared Euclidean distance of two 2D points.
|
|
Distance2 ( |
Squared Euclidean distance of two 2D points.
|
|
DotProduct ( System.Windows v1, System.Windows v2 ) : float | ||
EllipseAxes ( MCvBox2D ellipse ) : System.Drawing.PointF[] |
Returns the end points of the major and minor axes of an ellipse.
|
|
Extend ( |
Extends segment (p1, p2) by certain length. The direction of extension is from p1 to p2. If
|
|
GradientInDegree ( Point p1, Point p2 ) : float |
Returns the angle in degree of the gradient of the line defined by two points.
|
|
IsAngleClockwise ( |
Returns true if the angle from vector bc to vector ba is clockwise.
|
|
IsAngleClockwise ( System.Windows v1, System.Windows v2 ) : bool | ||
LineIntersection ( |
Point of intersection between line ab and line cd.
|
|
LinePointDistance ( |
Calculates the signed perpendicular distance from a point to a line. Point on the right side of the vector (P1 -> P2) will be NEGATIVE.
|
|
LineSegPointDistance ( Point a, Point b, Point p ) : double |
Line segement (a, b) to point p distance.
|
|
Midpoint ( DepthImagePoint p1, DepthImagePoint p2 ) : DepthImagePoint | ||
Midpoint ( Point p1, Point p2 ) : Point | ||
Midpoint ( |
||
Offset ( Point p1, System.Windows dir, float len ) : Point |
Offsets a point in a particular direction by certian length.
|
|
Offset ( |
||
Perp ( System.Windows v ) : System.Windows.Vector |
Returns a new vector which is perpendicular to v.
|
|
ProjectionDistance ( |
Signed length of projection of (a->p) to vector (a->b).
|
|
Rotate ( |
||
SegmentsIntersect ( Point a1, Point a2, Point b1, Point b2 ) : bool |
Returns true if segment (a1, a2) intersects with segment (b1, b2) including end points.
|
|
SegmentsIntersect ( |
||
Sign ( double n ) : int | ||
Slope ( Point p1, Point p2 ) : double | ||
Vector ( |
Returns a new
|
public static Angle ( System.Windows v1, System.Windows v2 ) : float | ||
v1 | System.Windows | |
v2 | System.Windows | |
return | float |
public static BetweenX ( Point p, Point p1, Point p2 ) : bool | ||
p | Point | |
p1 | Point | |
p2 | Point | |
return | bool |
public static Center ( this rect ) : |
||
rect | this | |
return |
public static ClosestPointToLine ( |
||
a | ||
b | ||
p | ||
return |
public static CrossProduct ( System.Windows v1, System.Windows v2 ) : float | ||
v1 | System.Windows | |
v2 | System.Windows | |
return | float |
public static Distance ( Point p1, Point p2 ) : double | ||
p1 | Point | |
p2 | Point | |
return | double |
public static Distance ( |
||
p1 | ||
p2 | ||
return | double |
public static Distance2 ( double x1, double y1, double x2, double y2 ) : double | ||
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
return | double |
public static Distance2 ( Point p1, Point p2 ) : float | ||
p1 | Point | Point 1. |
p2 | Point | Point 2. |
return | float |
public static Distance2 ( |
||
p1 | Point 1. | |
p2 | Point 2. | |
return | float |
public static DotProduct ( System.Windows v1, System.Windows v2 ) : float | ||
v1 | System.Windows | |
v2 | System.Windows | |
return | float |
public static EllipseAxes ( MCvBox2D ellipse ) : System.Drawing.PointF[] | ||
ellipse | MCvBox2D | |
return | System.Drawing.PointF[] |
public static Extend ( |
||
p1 | One end of the segment. | |
p2 | The other end of the segment. | |
extension | float | The length of the extension. |
return |
public static GradientInDegree ( Point p1, Point p2 ) : float | ||
p1 | Point | |
p2 | Point | |
return | float |
public static IsAngleClockwise ( |
||
a | ||
b | ||
c | ||
return | bool |
public static IsAngleClockwise ( System.Windows v1, System.Windows v2 ) : bool | ||
v1 | System.Windows | |
v2 | System.Windows | |
return | bool |
public static LineIntersection ( |
||
a | ||
b | ||
c | ||
d | ||
return |
public static LinePointDistance ( |
||
p1 | One end of the line. | |
p2 | The other end of the line. | |
p | ||
return | float |
public static LineSegPointDistance ( Point a, Point b, Point p ) : double | ||
a | Point | |
b | Point | |
p | Point | |
return | double |
public static Midpoint ( DepthImagePoint p1, DepthImagePoint p2 ) : DepthImagePoint | ||
p1 | DepthImagePoint | |
p2 | DepthImagePoint | |
return | DepthImagePoint |
public static Midpoint ( Point p1, Point p2 ) : Point | ||
p1 | Point | |
p2 | Point | |
return | Point |
public static Midpoint ( |
||
p1 | ||
p2 | ||
return |
public static Offset ( Point p1, System.Windows dir, float len ) : Point | ||
p1 | Point | |
dir | System.Windows | |
len | float | |
return | Point |
public static Offset ( |
||
p1 | ||
dir | System.Windows | |
len | float | |
return |
public static Perp ( System.Windows v ) : System.Windows.Vector | ||
v | System.Windows | The original vector. |
return | System.Windows.Vector |
public static ProjectionDistance ( |
||
a | ||
b | ||
p | ||
return | float |
public static Rotate ( |
||
p | ||
pivot | ||
theta | double | |
return |
public static SegmentsIntersect ( Point a1, Point a2, Point b1, Point b2 ) : bool | ||
a1 | Point | |
a2 | Point | |
b1 | Point | |
b2 | Point | |
return | bool |
public static SegmentsIntersect ( |
||
a1 | ||
a2 | ||
b1 | ||
b2 | ||
return | bool |
public static Slope ( Point p1, Point p2 ) : double | ||
p1 | Point | |
p2 | Point | |
return | double |
public static Vector ( |
||
a | ||
b | ||
return | System.Windows.Vector |