C# Class GeometryClassLibrary.ListLineSegmentExtensionMethods

Exibir arquivo Open project: ParagonTruss/GeometryClassLibrary

Public Methods

Method Description
AreAllCoplanar ( this passedLineList ) : bool

Returns true if all of the passed lines are in the same plane, false otherwise

AreAllParallel ( this passedLines ) : bool

checks to see whether every line is parallel

DoFormClosedRegion ( this passedBoundaries ) : bool

Puts the boundaries in order and then checks if the end point of the last one is on the base point of the first one

FindAreaOfPolygon ( this passedBorders ) : Area

finds the area of an irregular polygon. ASSUMES THAT LINESEGMENTS ARE IN CLOCKWISE ORDER!!!!! May need to change later

MakeCoplanarLineSegmentsIntoRegions ( this passedLineSegments ) : List
RotatePointsAboutAnAxis ( this segments, Line axis, System.Angle rotateAngle ) : List

takes the points from a list of line segments, rotates them, and turns them back into segments

RoundAllPoints ( this passedBoundaries, int passedNumberOfDecimals ) : List
Shift ( this passedLineSegments, Shift passedShift ) : List
SortIntoClockWiseSegments ( this borders ) : IEnumerable

Will break down all line segments into points and form them into clockwise traveling segments

Method Details

AreAllCoplanar() public static method

Returns true if all of the passed lines are in the same plane, false otherwise
public static AreAllCoplanar ( this passedLineList ) : bool
passedLineList this
return bool

AreAllParallel() public static method

checks to see whether every line is parallel
public static AreAllParallel ( this passedLines ) : bool
passedLines this passed List of Lines
return bool

DoFormClosedRegion() public static method

Puts the boundaries in order and then checks if the end point of the last one is on the base point of the first one
public static DoFormClosedRegion ( this passedBoundaries ) : bool
passedBoundaries this
return bool

FindAreaOfPolygon() public static method

finds the area of an irregular polygon. ASSUMES THAT LINESEGMENTS ARE IN CLOCKWISE ORDER!!!!! May need to change later
public static FindAreaOfPolygon ( this passedBorders ) : Area
passedBorders this
return Area

MakeCoplanarLineSegmentsIntoRegions() public static method

public static MakeCoplanarLineSegmentsIntoRegions ( this passedLineSegments ) : List
passedLineSegments this
return List

RotatePointsAboutAnAxis() public static method

takes the points from a list of line segments, rotates them, and turns them back into segments
public static RotatePointsAboutAnAxis ( this segments, Line axis, System.Angle rotateAngle ) : List
segments this
axis Line
rotateAngle System.Angle
return List

RoundAllPoints() public static method

public static RoundAllPoints ( this passedBoundaries, int passedNumberOfDecimals ) : List
passedBoundaries this
passedNumberOfDecimals int
return List

Shift() public static method

public static Shift ( this passedLineSegments, Shift passedShift ) : List
passedLineSegments this
passedShift Shift
return List

SortIntoClockWiseSegments() public static method

Will break down all line segments into points and form them into clockwise traveling segments
public static SortIntoClockWiseSegments ( this borders ) : IEnumerable
borders this
return IEnumerable