Méthode | Description | |
---|---|---|
AngleToClock ( Vector3D v1, Vector3D v2 ) : double |
Returns the clockwise angle between two vectors (between 0 and 2*pi) NOTE: A unique clockwise angle really only makes sense onces you've picked a plane normal direction. So as coded, this function is really only intended to be used with 2D vector inputs.
|
|
AngleToCounterClock ( Vector3D v1, Vector3D v2 ) : double |
Returns the counterclock angle between two vectors (between 0 and 2*pi) NOTE: A unique counter clockwise angle really only makes sense onces you've picked a plane normal direction. So as coded, this function is really only intended to be used with 2D vector inputs.
|
|
DistancePointLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : double | ||
IntersectionCircleCircle ( Circle c1, Circle c2, Vector3D &p1, Vector3D &p2 ) : int | ||
IntersectionLineCircle ( Vector3D lineP1, Vector3D lineP2, Circle circle, Vector3D &p1, Vector3D &p2 ) : int | ||
IntersectionLineLine ( Vector3D p1, Vector3D p2, Vector3D p3, Vector3D p4, Vector3D &intersection ) : int | ||
ProjectOntoLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : Vector3D | ||
ReflectPointInLine ( Vector3D input, Vector3D p1, Vector3D p2 ) : Vector3D |
Reflects a point in a line defined by two points.
|
public static AngleToClock ( Vector3D v1, Vector3D v2 ) : double | ||
v1 | Vector3D | |
v2 | Vector3D | |
Résultat | double |
public static AngleToCounterClock ( Vector3D v1, Vector3D v2 ) : double | ||
v1 | Vector3D | |
v2 | Vector3D | |
Résultat | double |
public static DistancePointLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : double | ||
p | Vector3D | |
lineP1 | Vector3D | |
lineP2 | Vector3D | |
Résultat | double |
public static IntersectionCircleCircle ( Circle c1, Circle c2, Vector3D &p1, Vector3D &p2 ) : int | ||
c1 | Circle | |
c2 | Circle | |
p1 | Vector3D | |
p2 | Vector3D | |
Résultat | int |
public static IntersectionLineCircle ( Vector3D lineP1, Vector3D lineP2, Circle circle, Vector3D &p1, Vector3D &p2 ) : int | ||
lineP1 | Vector3D | |
lineP2 | Vector3D | |
circle | Circle | |
p1 | Vector3D | |
p2 | Vector3D | |
Résultat | int |
public static IntersectionLineLine ( Vector3D p1, Vector3D p2, Vector3D p3, Vector3D p4, Vector3D &intersection ) : int | ||
p1 | Vector3D | |
p2 | Vector3D | |
p3 | Vector3D | |
p4 | Vector3D | |
intersection | Vector3D | |
Résultat | int |
public static ProjectOntoLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : Vector3D | ||
p | Vector3D | |
lineP1 | Vector3D | |
lineP2 | Vector3D | |
Résultat | Vector3D |
public static ReflectPointInLine ( Vector3D input, Vector3D p1, Vector3D p2 ) : Vector3D | ||
input | Vector3D | |
p1 | Vector3D | |
p2 | Vector3D | |
Résultat | Vector3D |