C# 클래스 FlatRedBall.Math.Geometry.ShapeMerger

파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 프로퍼티들

프로퍼티 타입 설명
ShiftAmount float

공개 메소드들

메소드 설명
EliminateButts ( Polygon polygon, float maximumDistanceForSamePoint ) : void
Merge ( Polygon polygon, AxisAlignedRectangle rectangle ) : void
Merge ( Polygon polygon, Polygon otherPolygon ) : void

Modifies the first Polygon so that it is the result of both merged polygons. This method assumes that the polygons collide and that both are drawn clockwise.

MergePoints ( Polygon polygon, float maximumDistanceForMerge ) : void

비공개 메소드들

메소드 설명
DoesContactPointsHaveOtherIndex ( int index, List contactPoints ) : bool
DoesContactPointsHaveThisIndex ( int index, List contactPoints ) : bool
GetAbsoluteVertices ( AxisAlignedRectangle rectangle ) : List
GetAbsoluteVertices ( Polygon polygon ) : List
GetAbsoluteVertices ( Segment segments ) : List
GetContactPointAtOtherIndex ( int index, List contactPoints, Vector3 closestPoint ) : ContactPoint
GetContactPointAtThisIndex ( int index, List contactPoints, Vector3 closestPoint ) : ContactPoint
GetContactPoints ( Polygon polygon, AxisAlignedRectangle rectangle ) : List
GetContactPoints ( Polygon firstPolygon, Polygon secondPolygon, Segment &firstSegments, Segment &secondSegments ) : List
GetContactPoints ( Segment firstSegments, Segment secondSegments ) : List
GetPointToStartAt ( Polygon polygon, AxisAlignedRectangle rectangle ) : int
GetPointToStartAt ( Polygon polygon, Polygon otherPolygon ) : int
GetSegments ( AxisAlignedRectangle rectangle ) : FlatRedBall.Math.Geometry.Segment[]
GetSegments ( Polygon polygon ) : FlatRedBall.Math.Geometry.Segment[]
GetShift ( Segment segmentsTestingAgainst, int index ) : Vector3
LoopPoint ( List points, int index ) : int
ReactToOddContactPointCount ( List contactPoints ) : void
SetPointsFromContactPointsAndVertices ( Polygon polygon, Polygon otherPolygon, List contactPoints, int polygonPointToStartAt, List thisVertices, List otherVertices ) : void
SetPolygonPoints ( Polygon polygon, List newPolygonPoints ) : void
ShiftEndpointsToEliminatePointOnSegment ( Segment firstSegments, Segment secondSegments ) : void

메소드 상세

EliminateButts() 공개 정적인 메소드

public static EliminateButts ( Polygon polygon, float maximumDistanceForSamePoint ) : void
polygon Polygon
maximumDistanceForSamePoint float
리턴 void

Merge() 공개 정적인 메소드

public static Merge ( Polygon polygon, AxisAlignedRectangle rectangle ) : void
polygon Polygon
rectangle AxisAlignedRectangle
리턴 void

Merge() 공개 정적인 메소드

Modifies the first Polygon so that it is the result of both merged polygons. This method assumes that the polygons collide and that both are drawn clockwise.
public static Merge ( Polygon polygon, Polygon otherPolygon ) : void
polygon Polygon The first polygon. This one will be modified.
otherPolygon Polygon The second polygon which will not be modified.
리턴 void

MergePoints() 공개 정적인 메소드

public static MergePoints ( Polygon polygon, float maximumDistanceForMerge ) : void
polygon Polygon
maximumDistanceForMerge float
리턴 void

프로퍼티 상세

ShiftAmount 공개적으로 정적으로 프로퍼티

public static float ShiftAmount
리턴 float