MURE
Loading...
Searching...
No Matches
Functions | Variables
MathHexagon.cxx File Reference
#include <cmath>
#include <sstream>
#include "MureConstant.hxx"
#include "MUREGlobal.hxx"
#include "MiscFunction.hxx"
#include "Shape.hxx"
#include "TReference.hxx"
#include "MathHexagon.hxx"
#include "MathPlane.hxx"
#include "MathBrick.hxx"
#include "MathCylinder.hxx"
#include "MathTube.hxx"

Functions

bool IsHexagonInTube (double Xh[2], Shape_ptr hexa, double Rmax, double Rmin, double *Xt)
 
bool IsHexagonInHexagon (double Xh1[2], Shape_ptr hexa1, Shape_ptr hexa2)
 
bool IsCylinderInHexagon (Shape_ptr cylinder, Shape_ptr hexagon)
 

Variables

const double sqroot3 = sqrt(3.)
 

Function Documentation

◆ IsCylinderInHexagon()

bool IsCylinderInHexagon ( Shape_ptr  cylinder,
Shape_ptr  hexagon 
)

Say if a cylinder or a tube is entirely included in an hexagon : in (X, Y) -> no dependance with Z Return 1 if the tube/cylinder is inside ENTIRELY the hexagon, return 0 if not

Parameters
cylinder: the cylinder or the tube
hexagon: the hexagon

◆ IsHexagonInHexagon()

bool IsHexagonInHexagon ( double  Xh1[2],
Shape_ptr  hexa1,
Shape_ptr  hexa2 
)

Say if each corner of an Hexagon 1 is included in an Hexagon 2.

Parameters
Xh1: the Hexagon 1 origin (x, y)
hexa1: an Hexagon 1
hexa2: an Hexagon 2

◆ IsHexagonInTube()

bool IsHexagonInTube ( double  Xh[2],
Shape_ptr  hexa,
double  Rmax,
double  Rmin = 0,
double *  Xt = nullptr 
)

Say if each corner of an Hexagon is included in a Tube.

Parameters
Xh: the Hexagon origin (x, y)
hexa: an Hexagon
Rmax: the external radius of the Tube
Rmin: the internal radius of the Tube
Xt: the (x, y) origin of the Tube

Variable Documentation

◆ sqroot3

const double sqroot3 = sqrt(3.)

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024