C# 클래스 R3.Geometry.Euclidean2D

파일 보기 프로젝트 열기: roice3/Honeycombs 1 사용 예제들

공개 메소드들

메소드 설명
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