C# 클래스 GeometryClassLibrary.PointListExtensions

파일 보기 프로젝트 열기: ParagonTruss/GeometryClassLibrary

공개 메소드들

메소드 설명
AllPointsAreOnTheSameSideOf ( this pointList, Plane plane ) : bool

determines if the points in the list, all lie on the same side of the dividing plane. Points on the plane are disregarded

AreAllCoplanar ( this points ) : bool
CenterPoint ( this points ) : Point
ConvexHull ( this passedPointList, bool allPointsShouldBeVertices = false ) : Polygon

Creates the largest convex polygon whose vertices are from this list Uses the Graham Scan: http://en.wikipedia.org/wiki/Graham_scan the suppressed boolean is for cases where you know all your points can be used

FurthestPoints ( this pointList ) : List

Returns the two points that are furthest from each other in the list.

GreatestXDistance ( this points ) : Distance
GreatestYDistance ( this points ) : Distance
GreatestZDistance ( this points ) : Distance
MakeIntoLineSegmentsThatMeet ( this points ) : List

Makes line segments that connect the given points in the order the appear in the list

ProjectAllOntoPlane ( this pointList, Plane plane ) : List
Rotate ( this pointList, Rotation rotation ) : List
Shift ( this pointList, Shift shift ) : List

비공개 메소드들

메소드 설명
_removeInteriorPoints ( Point initial, List pointsInOrder ) : void
_sortByAngles ( this pointList, Point initial ) : List
_xCompIsConstant ( this pointList ) : bool

메소드 상세

AllPointsAreOnTheSameSideOf() 공개 정적인 메소드

determines if the points in the list, all lie on the same side of the dividing plane. Points on the plane are disregarded
public static AllPointsAreOnTheSameSideOf ( this pointList, Plane plane ) : bool
pointList this
plane Plane
리턴 bool

AreAllCoplanar() 공개 정적인 메소드

public static AreAllCoplanar ( this points ) : bool
points this
리턴 bool

CenterPoint() 공개 정적인 메소드

public static CenterPoint ( this points ) : Point
points this
리턴 Point

ConvexHull() 공개 정적인 메소드

Creates the largest convex polygon whose vertices are from this list Uses the Graham Scan: http://en.wikipedia.org/wiki/Graham_scan the suppressed boolean is for cases where you know all your points can be used
public static ConvexHull ( this passedPointList, bool allPointsShouldBeVertices = false ) : Polygon
passedPointList this
allPointsShouldBeVertices bool
리턴 Polygon

FurthestPoints() 공개 정적인 메소드

Returns the two points that are furthest from each other in the list.
public static FurthestPoints ( this pointList ) : List
pointList this
리턴 List

GreatestXDistance() 공개 정적인 메소드

public static GreatestXDistance ( this points ) : Distance
points this
리턴 UnitClassLibrary.DistanceUnit.Distance

GreatestYDistance() 공개 정적인 메소드

public static GreatestYDistance ( this points ) : Distance
points this
리턴 UnitClassLibrary.DistanceUnit.Distance

GreatestZDistance() 공개 정적인 메소드

public static GreatestZDistance ( this points ) : Distance
points this
리턴 UnitClassLibrary.DistanceUnit.Distance

MakeIntoLineSegmentsThatMeet() 공개 정적인 메소드

Makes line segments that connect the given points in the order the appear in the list
public static MakeIntoLineSegmentsThatMeet ( this points ) : List
points this
리턴 List

ProjectAllOntoPlane() 공개 정적인 메소드

public static ProjectAllOntoPlane ( this pointList, Plane plane ) : List
pointList this
plane Plane
리턴 List

Rotate() 공개 정적인 메소드

public static Rotate ( this pointList, Rotation rotation ) : List
pointList this
rotation Rotation
리턴 List

Shift() 공개 정적인 메소드

public static Shift ( this pointList, Shift shift ) : List
pointList this
shift Shift
리턴 List