14 #include "mg/Interval.h"
46 MG_DLL_DECLR
friend std::ostream&
operator<< (std::ostream&,
const MGBox&);
55 explicit MGBox(
int dim=0):m_sdim(0), m_range(0){
if(dim) get_area(dim);};
162 MGBox operator/ (
double a)
const;
168 MGBox& operator/= (
double );
192 bool operator== (
const MGBox& box2)
const;
193 bool operator!= (
const MGBox& box2)
const{
return !(*
this==box2);}
205 bool operator>> (
const MGBox&)
const;
225 bool cutting(
const MGPlane& plane)
const;
234 int dump_size()
const;
246 void expand(
double len);
253 void expand(
double* len);
275 bool includes_origin()
const;
297 int sdim()
const{
return m_sdim;};
313 return m_range[i].type();
318 std::vector<MGPosition> vertex()
const;
337 void get_area(
int dim);
341 void resize(
int dim);
const MGInterval & operator[](int i) const
Return i-th Inteval.
Definition: Box.h:105
const MGInterval & operator()(int i) const
Definition: Box.h:106
bool includes(const MGPosition &P) const
Test if the point P is included in this box.
Definition: Box.h:278
MGPlane is infinite plane in 3D space.
Definition: Plane.h:38
MGTransf represents a transformation of a space dimension.
Definition: Transf.h:35
double length() const
Return diagonal line length.
Definition: Box.h:288
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
MGInterval & operator()(int i)
Definition: Box.h:110
MG_DLL_DECLR MGVector & operator*=(MGVector &v, const MGMatrix &m)
Vector of a general n space dimension.
Definition: Vector.h:26
Defines a Box of any space dimendion.
Definition: Box.h:34
int sdim() const
Return space dimension.
Definition: Box.h:297
MGBox(int dim=0)
Definition: Box.h:55
MGStraight is a curve of any space dimension, represent a straight line.
Definition: Straight.h:49
Interval of 1 dimension, i.e. MGInterval is a real line.
Definition: Interval.h:22
MG_DLL_DECLR MGVector operator*(const MGVector &v, const MGMatrix &m)
Represent a positional data.
Definition: Position.h:28
MGINTERVAL_TYPE type(int i) const
Return the type of i-th interval.
Definition: Box.h:311
MGInterval & operator[](int i)
Access to i-th Inteval.
Definition: Box.h:109
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
Empty interval. Interval は空集合
Definition: MGCL.h:118
MGINTERVAL_TYPE
MGInterval type.
Definition: MGCL.h:117
bool is_null() const
Test if this is null box.
Definition: Box.h:281
MGMatrix is a matix of m by m, where m is the space dimension.
Definition: Matrix.h:30