# WFMath_RotBox man page

WFMath::RotBox< dim > — A dim dimensional box, lying at an arbitrary angle.

## Synopsis

`#include <rotbox.h>`

### Public Member Functions

RotBox ()
construct an uninitialized box
RotBox (const Point< dim > &p, const Vector< dim > &size, const RotMatrix< dim > &orientation)
construct a box from the given parameters
RotBox (const RotBox &b)
construct a copy of the box
RotBox (const AtlasInType &a)
Construct a rotbox from an object passed by Atlas.
AtlasOutType toAtlas () const
Create an Atlas object from the box.
void fromAtlas (const AtlasInType &a)
Set the box's value to that given by an Atlas object.
const Point< dim > & corner0 () const
returns the base corner of the box
Point< dim > & corner0 ()
returns the base corner of the box
const Vector< dim > & size () const
returns the size of the box
Vector< dim > & size ()
returns the size of the box
const RotMatrix< dim > & orientation () const
returns the orientation of the box
RotMatrix< dim > & orientation ()
returns the orientation of the box

## Detailed Description

### template<int dim = 3>

class WFMath::RotBox< dim >" A dim dimensional box, lying at an arbitrary angle.

This class implements the full shape interface, as described in the fake class Shape.

## Constructor & Destructor Documentation

### template<int dim = 3> WFMath::RotBox< dim >::RotBox (const Point< dim > & p, const Vector< dim > & size, const RotMatrix< dim > & orientation) [inline]

construct a box from the given parameters p gives corner 0 of the box, size gives the offset from corner 0 to the opposite corner (corner 2^dim - 1), orientation gives the rotation of the box relative to the coordinate axes

## Author

Generated automatically by Doxygen for WFMath from the source code.

## Info

Sat Aug 5 2017 Version 1.0.2 WFMath