C# Класс R3.Geometry.Euclidean2D

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AngleToClock() публичный статический Метод

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
Результат double

AngleToCounterClock() публичный статический Метод

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
Результат double

DistancePointLine() публичный статический Метод

public static DistancePointLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : double
p Vector3D
lineP1 Vector3D
lineP2 Vector3D
Результат double

IntersectionCircleCircle() публичный статический Метод

public static IntersectionCircleCircle ( Circle c1, Circle c2, Vector3D &p1, Vector3D &p2 ) : int
c1 Circle
c2 Circle
p1 Vector3D
p2 Vector3D
Результат int

IntersectionLineCircle() публичный статический Метод

public static IntersectionLineCircle ( Vector3D lineP1, Vector3D lineP2, Circle circle, Vector3D &p1, Vector3D &p2 ) : int
lineP1 Vector3D
lineP2 Vector3D
circle Circle
p1 Vector3D
p2 Vector3D
Результат int

IntersectionLineLine() публичный статический Метод

public static IntersectionLineLine ( Vector3D p1, Vector3D p2, Vector3D p3, Vector3D p4, Vector3D &intersection ) : int
p1 Vector3D
p2 Vector3D
p3 Vector3D
p4 Vector3D
intersection Vector3D
Результат int

ProjectOntoLine() публичный статический Метод

public static ProjectOntoLine ( Vector3D p, Vector3D lineP1, Vector3D lineP2 ) : Vector3D
p Vector3D
lineP1 Vector3D
lineP2 Vector3D
Результат Vector3D

ReflectPointInLine() публичный статический Метод

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
Результат Vector3D