C# 클래스 OpenRA.Mods.Common.WorldExtensions

파일 보기 프로젝트 열기: pchote/OpenRA

공개 메소드들

메소드 설명
FindActorsOnLine ( this world, WPos lineStart, WPos lineEnd, WDist lineWidth, WDist targetExtraSearchRadius ) : IEnumerable

Finds all the actors of which their health radius is intersected by a line (with a definable width) between two points.

MinimumPointLineProjection ( WPos lineStart, WPos lineEnd, WPos point ) : WPos

Find the point (D) on a line (A-B) that is closest to the target point (C).

메소드 상세

FindActorsOnLine() 공개 정적인 메소드

Finds all the actors of which their health radius is intersected by a line (with a definable width) between two points.
public static FindActorsOnLine ( this world, WPos lineStart, WPos lineEnd, WDist lineWidth, WDist targetExtraSearchRadius ) : IEnumerable
world this The engine world the line intersection is to be done in.
lineStart WPos The position the line should start at
lineEnd WPos The position the line should end at
lineWidth WDist How close an actor's health radius needs to be to the line to be considered 'intersected' by the line
targetExtraSearchRadius WDist
리턴 IEnumerable

MinimumPointLineProjection() 공개 정적인 메소드

Find the point (D) on a line (A-B) that is closest to the target point (C).
public static MinimumPointLineProjection ( WPos lineStart, WPos lineEnd, WPos point ) : WPos
lineStart WPos The source point (tail) of the line
lineEnd WPos The target point (head) of the line
point WPos The target point that the minimum distance should be found to
리턴 WPos