C# Class R3.Geometry.Euclidean2D

Datei anzeigen Open project: roice3/Honeycombs Class Usage Examples

Public Methods

Method 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.

Method Details

AngleToClock() public static method

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.
public static AngleToClock ( Vector3D v1, Vector3D v2 ) : double
v1 Vector3D
v2 Vector3D
return double

AngleToCounterClock() public static method

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.
public static AngleToCounterClock ( Vector3D v1, Vector3D v2 ) : double
v1 Vector3D
v2 Vector3D
return double

DistancePointLine() public static method

public static DistancePointLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : double
p Vector3D
lineP1 Vector3D
lineP2 Vector3D
return double

IntersectionCircleCircle() public static method

public static IntersectionCircleCircle ( Circle c1, Circle c2, Vector3D &p1, Vector3D &p2 ) : int
c1 Circle
c2 Circle
p1 Vector3D
p2 Vector3D
return int

IntersectionLineCircle() public static method

public static IntersectionLineCircle ( Vector3D lineP1, Vector3D lineP2, Circle circle, Vector3D &p1, Vector3D &p2 ) : int
lineP1 Vector3D
lineP2 Vector3D
circle Circle
p1 Vector3D
p2 Vector3D
return int

IntersectionLineLine() public static method

public static IntersectionLineLine ( Vector3D p1, Vector3D p2, Vector3D p3, Vector3D p4, Vector3D &intersection ) : int
p1 Vector3D
p2 Vector3D
p3 Vector3D
p4 Vector3D
intersection Vector3D
return int

ProjectOntoLine() public static method

public static ProjectOntoLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : Vector3D
p Vector3D
lineP1 Vector3D
lineP2 Vector3D
return Vector3D

ReflectPointInLine() public static method

Reflects a point in a line defined by two points.
public static ReflectPointInLine ( Vector3D input, Vector3D p1, Vector3D p2 ) : Vector3D
input Vector3D
p1 Vector3D
p2 Vector3D
return Vector3D