numerics
Loading...
Searching...
No Matches
Hose Struct Reference

Public Member Functions

void init (Vector3 src, Vector3 target, float temp, float spd, float half_angle)
 
void emit (physics::FluidSolver3D &solver, int count, int max_particles=1800) const
 
Vector3 pos () const
 

Public Attributes

Vector3 source
 
Vector3 dir
 normalised jet direction
 
Vector3 perp_u
 two axes spanning the spray cone
 
Vector3 perp_v
 
float temperature
 
float speed
 
float cone_half
 half-angle in radians
 
bool active = false
 

Detailed Description

Definition at line 70 of file main.cpp.

Member Function Documentation

◆ emit()

void Hose::emit ( physics::FluidSolver3D solver,
int  count,
int  max_particles = 1800 
) const
inline

◆ init()

void Hose::init ( Vector3  src,
Vector3  target,
float  temp,
float  spd,
float  half_angle 
)
inline

Definition at line 80 of file main.cpp.

References cone_half, dir, perp_u, perp_v, source, speed, and temperature.

Referenced by main().

◆ pos()

Vector3 Hose::pos ( ) const
inline

Definition at line 126 of file main.cpp.

References source.

Referenced by main().

Member Data Documentation

◆ active

bool Hose::active = false

Definition at line 78 of file main.cpp.

Referenced by emit(), and main().

◆ cone_half

float Hose::cone_half

half-angle in radians

Definition at line 77 of file main.cpp.

Referenced by emit(), and init().

◆ dir

Vector3 Hose::dir

normalised jet direction

Definition at line 72 of file main.cpp.

Referenced by emit(), and init().

◆ perp_u

Vector3 Hose::perp_u

two axes spanning the spray cone

Definition at line 73 of file main.cpp.

Referenced by emit(), and init().

◆ perp_v

Vector3 Hose::perp_v

Definition at line 74 of file main.cpp.

Referenced by emit(), and init().

◆ source

Vector3 Hose::source

Definition at line 71 of file main.cpp.

Referenced by emit(), init(), and pos().

◆ speed

float Hose::speed

Definition at line 76 of file main.cpp.

Referenced by emit(), and init().

◆ temperature

float Hose::temperature

Definition at line 75 of file main.cpp.

Referenced by emit(), and init().


The documentation for this struct was generated from the following file: