A vector which points in a direction.  
 More...
#include <Shape.h>
A vector which points in a direction. 
◆ vector() [1/4]
Create a vector. 
- Parameters
- 
  
    | x | Distance in x |  | y | Distance in y |  | z | Distance in z |  
 
 
 
◆ vector() [2/4]
  
  | 
        
          | lm::builder::vector::vector | ( | const point & | from, |  
          |  |  | const point & | to ) |  | inline | 
 
Construct a vector pointing from one point to another. 
- Parameters
- 
  
    | from | The point at the root of the vector |  | to | The point at the end of the vector |  
 
 
 
◆ vector() [3/4]
  
  | 
        
          | lm::builder::vector::vector | ( | const vector & | v | ) |  |  | inline | 
 
Construct a vector from another vector. 
- Parameters
- 
  
  
 
 
◆ vector() [4/4]
  
  | 
        
          | lm::builder::vector::vector | ( | const point & | p | ) |  |  | inline | 
 
Construct a vector from a point. 
- Parameters
- 
  
  
 
 
◆ cross()
Compute the cross product between vectors. 
- Parameters
- 
  
  
 
 
◆ dot()
Compute the dot product between vectors. 
- Parameters
- 
  
  
 
 
◆ findPerpendicularVector()
  
  | 
        
          | vector lm::builder::vector::findPerpendicularVector | ( | vector | v | ) |  |  | inlinestatic | 
 
 
◆ length()
◆ mult() [1/2]
Multiply with a matrix to form a new vector (assuming this vector is a row vector) 
- Parameters
- 
  
  
 
 
◆ mult() [2/2]
Multiply with another vector (taking this vector to be a row vector) to form a matrix. 
- Parameters
- 
  
  
 
 
◆ scale()
Scale the vector by a constant. 
- Parameters
- 
  
  
 
 
◆ toPoint()
  
  | 
        
          | point lm::builder::vector::toPoint | ( |  | ) |  |  | inline | 
 
convert the vector to a point 
 
 
◆ unitize()
      
        
          | vector lm::builder::vector::unitize | ( |  | ) |  | 
      
 
Get a unit vector pointing in the same direction as this vector. 
 
 
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