Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
lm::builder::point Struct Reference

Type to store a position in space. More...

#include <Shape.h>

Public Member Functions

 point (si_dist_t x=0.0, si_dist_t y=0.0, si_dist_t z=0.0)
 Create a point.
 point (const point &p2)
 Create a point from another point.
si_dist_t distanceSquared (const point &p2)
 Determine the distance squared between two points.
point minus (const vector &r)
 Subtract the vector from the point.
point plus (const vector &r)
 Add the vector from the point.
si_dist_t distance (const point &p2)
 Determine the distance to another point.

Public Attributes

si_dist_t x
si_dist_t y
si_dist_t z

Detailed Description

Type to store a position in space.

Constructor & Destructor Documentation

◆ point() [1/2]

lm::builder::point::point ( si_dist_t x = 0.0,
si_dist_t y = 0.0,
si_dist_t z = 0.0 )
inline

Create a point.

Parameters
xX location
yY location
zZ location
Here is the caller graph for this function:

◆ point() [2/2]

lm::builder::point::point ( const point & p2)
inline

Create a point from another point.

Parameters
p2The point to copy
Here is the call graph for this function:

Member Function Documentation

◆ distance()

si_dist_t lm::builder::point::distance ( const point & p2)
inline

Determine the distance to another point.

Parameters
p2Second point
Returns
scalar distance
Here is the call graph for this function:

◆ distanceSquared()

si_dist_t lm::builder::point::distanceSquared ( const point & p2)
inline

Determine the distance squared between two points.

Parameters
p2Second point
Returns
scalar distance squared
Here is the call graph for this function:
Here is the caller graph for this function:

◆ minus()

point lm::builder::point::minus ( const vector & r)

Subtract the vector from the point.

Parameters
vThe vector to subtract
Returns
A new point at that location
Here is the call graph for this function:
Here is the caller graph for this function:

◆ plus()

point lm::builder::point::plus ( const vector & r)

Add the vector from the point.

Parameters
vThe vector to add
Returns
A new point at that location
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ x

si_dist_t lm::builder::point::x

◆ y

si_dist_t lm::builder::point::y

◆ z

si_dist_t lm::builder::point::z

The documentation for this struct was generated from the following files:
  • /data2/LM_zls_github/Lattice-Microbes/src/builder/Shape.h
  • /data2/LM_zls_github/Lattice-Microbes/src/builder/Shape.cpp