![]() |
NLMech
0.1.0
|
Provides geometrical methods such as point inside rectangle. More...
Functions | |
| double | angle (util::Point3 vec_1, util::Point3 vec_2, size_t dim, bool anticlock=false) |
| Computes angle between two vectors. More... | |
| int | direction (util::Point3 A, util::Point3 B, util::Point3 C) |
| Checks if the point C in on the line between A and B. More... | |
| bool | doLinesIntersect (util::Point3 A, util::Point3 B, util::Point3 C, util::Point3 D) |
| Checks if the two lines between A and B and between C and C intersect. More... | |
| util::Point3 | getCenter (const std::vector< util::Point3 > &nodes, const size_t &elem_type) |
| Computes the centroid of element. More... | |
| std::pair< util::Point3, double > | getCenterAndVol (const std::vector< util::Point3 > &nodes, const size_t &elem_type) |
| Computes the centroid and volume of element. More... | |
| std::vector< util::Point3 > | getCornerPoints (size_t dim, const std::pair< util::Point3, util::Point3 > &box) |
| Returns all corner points in the box. More... | |
| double | getTetVolume (const std::vector< util::Point3 > &nodes) |
| Computes the volume of tetrahedron. More... | |
| double | getTriangleArea (const std::vector< util::Point3 > &nodes) |
| Computes the area of triangle. More... | |
| bool | isPointinCircle (util::Point3 A, util::Point3 center, double radius) |
| Checks if the point A is within the circle with the center and the radius. More... | |
| bool | isPointInsideAngledRectangle (util::Point3 x, double x_min, double x_max, double y_min, double y_max, double theta) |
| Checks if point is inside an angled rectangle. More... | |
| bool | isPointInsideCuboid (size_t dim, util::Point3 x, util::Point3 x_lbb, util::Point3 x_rtf) |
| Checks if point is inside a cuboid (rectangle in 2-d, line in 1-d) More... | |
| bool | isPointInsideRectangle (util::Point3 x, double x_min, double x_max, double y_min, double y_max) |
| Checks if point is inside a rectangle. More... | |
| bool | isPointInsideRectangle (util::Point3 x, util::Point3 x_lb, util::Point3 x_rt) |
| Checks if point is inside a rectangle. More... | |
| bool | onLine (util::Point3 A, util::Point3 B, util::Point3 C) |
| Checks if the point C in on the between A and B. More... | |
Provides geometrical methods such as point inside rectangle.
| double util::geometry::angle | ( | util::Point3 | vec_1, |
| util::Point3 | vec_2, | ||
| size_t | dim, | ||
| bool | anticlock = false |
||
| ) |
Computes angle between two vectors.
| vec_1 | Vector 1 |
| vec_2 | Vector 2 |
| dim | Dimension |
| anticlock | Angle convention |
Referenced by angle().


| int util::geometry::direction | ( | util::Point3 | A, |
| util::Point3 | B, | ||
| util::Point3 | C | ||
| ) |
Checks if the point C in on the line between A and B.
| A | Point 1 |
| B | Point 2 |
| C | Point 3 |
Referenced by doLinesIntersect().

| bool util::geometry::doLinesIntersect | ( | util::Point3 | A, |
| util::Point3 | B, | ||
| util::Point3 | C, | ||
| util::Point3 | D | ||
| ) |
Checks if the two lines between A and B and between C and C intersect.
| A | Start point of the first line |
| B | End point of the first line |
| C | Start point of the second line |
| D | End point of the second line |
Referenced by model::FDModel< T >::is_reaction_force().


| util::Point3 util::geometry::getCenter | ( | const std::vector< util::Point3 > & | nodes, |
| const size_t & | elem_type | ||
| ) |
Computes the centroid of element.
| nodes | Vertices of the element |
| elem_type | Element type |
| std::pair< util::Point3, double > util::geometry::getCenterAndVol | ( | const std::vector< util::Point3 > & | nodes, |
| const size_t & | elem_type | ||
| ) |
Computes the centroid and volume of element.
| nodes | Vertices of the element |
| elem_type | Element type |
Referenced by fe::Mesh::nodesAtCentroid().


| std::vector< util::Point3 > util::geometry::getCornerPoints | ( | size_t | dim, |
| const std::pair< util::Point3, util::Point3 > & | box | ||
| ) |
Returns all corner points in the box.
| dim | Dimension of the box |
| box | Pair of points representing cuboid (rectangle in 2d) |
| double util::geometry::getTetVolume | ( | const std::vector< util::Point3 > & | nodes | ) |
Computes the volume of tetrahedron.
| nodes | Vertices of the tetrahedron |
Referenced by getCenterAndVol().


| double util::geometry::getTriangleArea | ( | const std::vector< util::Point3 > & | nodes | ) |
Computes the area of triangle.
| nodes | Vertices of the triangle |
Referenced by getCenterAndVol().

| bool util::geometry::isPointinCircle | ( | util::Point3 | A, |
| util::Point3 | center, | ||
| double | radius | ||
| ) |
Checks if the point A is within the circle with the center and the radius.
| A | Point 1 |
| center | Center of the circle |
| radius | Radius of the circle |
Referenced by loading::ULoading::ULoading().

| bool util::geometry::isPointInsideAngledRectangle | ( | util::Point3 | x, |
| double | x_min, | ||
| double | x_max, | ||
| double | y_min, | ||
| double | y_max, | ||
| double | theta | ||
| ) |
Checks if point is inside an angled rectangle.
| x | Point |
| x_min | X coordinate of left-bottom corner point |
| x_max | X coordinate of right-top corner point |
| y_min | Y coordinate of left-bottom corner point |
| y_max | Y coordinate of right-top corner point |
| theta | Angle of orientation of rectangle from x-axis |
Referenced by loading::FLoading::FLoading(), and loading::ULoading::ULoading().


| bool util::geometry::isPointInsideCuboid | ( | size_t | dim, |
| util::Point3 | x, | ||
| util::Point3 | x_lbb, | ||
| util::Point3 | x_rtf | ||
| ) |
Checks if point is inside a cuboid (rectangle in 2-d, line in 1-d)
| dim | Dimension |
| x | Point |
| x_lbb | Coordinate of left-bottom-back corner point |
| x_rtf | Coordinate of right-top-front corner point |
Referenced by geometry::DampingGeom::computeDampingCoefficient(), and loading::FLoading::FLoading().


| bool util::geometry::isPointInsideRectangle | ( | util::Point3 | x, |
| double | x_min, | ||
| double | x_max, | ||
| double | y_min, | ||
| double | y_max | ||
| ) |
Checks if point is inside a rectangle.
| x | Point |
| x_min | X coordinate of left-bottom corner point |
| x_max | X coordinate of right-top corner point |
| y_min | Y coordinate of left-bottom corner point |
| y_max | Y coordinate of right-top corner point |
Referenced by model::FDModel< T >::checkOutputCriteria(), geometry::DataInterior::DataInterior(), tools::pp::Compute::decomposeSearchNodes(), loading::FLoading::FLoading(), geometry::ComputeInterior::getInteriorFlag(), tools::pp::Compute::getRectsAndNodesForCrackTip(), tools::pp::Compute::init(), tools::pp::Compute::listElemsAndNodesInDomain(), and loading::ULoading::ULoading().


| bool util::geometry::isPointInsideRectangle | ( | util::Point3 | x, |
| util::Point3 | x_lb, | ||
| util::Point3 | x_rt | ||
| ) |
Checks if point is inside a rectangle.
| x | Point |
| x_lb | Coordinate of left-bottom corner point |
| x_rt | Coordinate of right-top corner point |

| bool util::geometry::onLine | ( | util::Point3 | A, |
| util::Point3 | B, | ||
| util::Point3 | C | ||
| ) |
Checks if the point C in on the between A and B.
| A | Start point of the first line |
| B | End point of the first line |
| C | Point to test |
Referenced by doLinesIntersect().
