C# Class GeometryClassLibrary.RectangularPrism

A prism is "a solid geometric figure whose two end faces are similar, equal, and parallel rectilinear figures, and whose sides are parallelograms."
Inheritance: Polyhedron
Show file Open project: ParagonTruss/GeometryClassLibrary Class Usage Examples

Public Methods

Method Description
RectangularPrism ( Distance length, Distance width, Distance height, Point basePoint = null ) : UnitClassLibrary.DistanceUnit

Creates a rectangular prism with the given Distances in the x,y,z directions

RectangularPrism ( Point oppositeCorner, Point basePoint = null ) : UnitClassLibrary.DistanceUnit

Constructs the rectangular prism between the two passed points and the given point as opposite corners.

RectangularPrism ( Rectangle rectangle, Distance height ) : UnitClassLibrary.DistanceUnit

Protected Methods

Method Description
RectangularPrism ( ) : UnitClassLibrary.DistanceUnit

Protected null constructor for the use of data frameworks like Entity Framework and Json.NET

Private Methods

Method Description
_makePrismFromRectangle ( Rectangle rectangle, Distance height ) : Polyhedron
_makeSolid ( Distance length, Distance width, Distance height, Point basePoint = null ) : Polyhedron

Method Details

RectangularPrism() protected method

Protected null constructor for the use of data frameworks like Entity Framework and Json.NET
protected RectangularPrism ( ) : UnitClassLibrary.DistanceUnit
return UnitClassLibrary.DistanceUnit

RectangularPrism() public method

Creates a rectangular prism with the given Distances in the x,y,z directions
public RectangularPrism ( Distance length, Distance width, Distance height, Point basePoint = null ) : UnitClassLibrary.DistanceUnit
length UnitClassLibrary.DistanceUnit.Distance
width UnitClassLibrary.DistanceUnit.Distance
height UnitClassLibrary.DistanceUnit.Distance
basePoint Point
return UnitClassLibrary.DistanceUnit

RectangularPrism() public method

Constructs the rectangular prism between the two passed points and the given point as opposite corners.
public RectangularPrism ( Point oppositeCorner, Point basePoint = null ) : UnitClassLibrary.DistanceUnit
oppositeCorner Point
basePoint Point
return UnitClassLibrary.DistanceUnit

RectangularPrism() public method

public RectangularPrism ( Rectangle rectangle, Distance height ) : UnitClassLibrary.DistanceUnit
rectangle Rectangle
height UnitClassLibrary.DistanceUnit.Distance
return UnitClassLibrary.DistanceUnit