API Documentation
Loading...
Searching...
No Matches
Particle Class Reference

Used with CSF Cloth, The particle class represents a particle of mass that can move around in 3D space. More...

#include <Particle.h>

Inheritance diagram for Particle:
[legend]
Collaboration diagram for Particle:
[legend]

Public Member Functions

bool isMovable () const
 
void makeUnmovable ()
 
 Particle ()
 
 Particle (const Vector< 3, fltp04 > &pos)
 
void timeStep (fltp04 time, const Vector< 3, fltp04 > &acceleration)
 
- Public Member Functions inherited from Vertex< 3, fltp04 >
constexpr Vertex< t_new_dim, t_new_type, t_new_vector > as () const
 
constexpr Vertex< t_dims, t_new_type, t_new_vector > as () const
 
constexpr Vertex< t_new_dim, t_new_type, t_new_vector > as (t_new_type extra_fill_value) const
 
constexpr const Vertexcenter () const
 
constexpr Vertex< t_dims, fltp04, Vector< t_dims, fltp04 > > & operator= (const fltp04 &scaler)
 
constexpr Vertex< t_dims, fltp04, Vector< t_dims, fltp04 > > & operator= (const Vector< t_dims, fltp04 > &vector)
 
constexpr Vertex< t_dims, fltp04, Vector< t_dims, fltp04 > > & operator= (const Vertex< t_dims, fltp04, Vector< t_dims, fltp04 > > &vector)
 
constexpr Vertex scale (const fltp04 scale, const Vertex< t_dims, fltp04 > &center) const
 
constexpr Vertex scale (const Vector< t_dims, fltp04 > &scale, const Vertex< t_dims, fltp04 > &center) const
 
constexpr Vertex ()
 
constexpr Vertex (const fltp04 &scaler)
 
constexpr Vertex (const fltp04 prefix, const Vector< t_dims - 1, fltp04 > &vector)
 
constexpr Vertex (const fltp04 x, const fltp04 y)
 
constexpr Vertex (const fltp04 x, const fltp04 y, const fltp04 z, const fltp04 w)
 
constexpr Vertex (const fltp04(&vector)[t_dims])
 
constexpr Vertex (const Vector< getMax(t_dims - 1, 0), fltp04 > &vector, const fltp04 postfix)
 
constexpr Vertex (const Vector< getMax(t_dims - 2, 0), fltp04 > &vector, const fltp04 postfix_a, const fltp04 postfix_b)
 
constexpr Vertex (const Vector< t_dims, fltp04 > &vector)
 
constexpr Vertex (const Vertex< t_dims, fltp04, Vector< t_dims, fltp04 > > &vector)
 
constexpr Vertex (fltp04 x, fltp04 y, fltp04 z)
 
- Public Member Functions inherited from Vector< t_dims, t_type >
template<class t_new_type >
constexpr Vector< t_dims, t_new_type > as () const
 
template<uint01 t_new_dim, class t_new_type >
constexpr Vector< t_new_dim, t_new_type > as () const
 
template<uint01 t_new_dim, class t_new_type >
constexpr Vector< t_new_dim, t_new_type > as (t_new_type extra_fill_value) const
 
template<LocationValues t_max_min>
constexpr uint01 dimensionalIndex () const
 
template<LocationValues t_max_min>
constexpr t_type dimensionalValue () const
 
template<class t_magnitude_type = t_type>
constexpr t_magnitude_type magnitude () const
 
constexpr t_type magnitudeSquared () const
 
template<class t_norm_type = t_type>
constexpr Vector< t_dims, t_norm_type > normalized (Vector< t_dims, t_norm_type > value_if_nan=Constant< Vector< t_dims, t_norm_type > >::Invalid) const
 
template<uint01 tdims = t_dims, typename = typename std::enable_if<tdims == 1>::type>
constexpr operator const t_type & () const
 
template<uint01 tdims = t_dims, typename = typename std::enable_if<tdims == 1>::type>
constexpr operator t_type & ()
 
constexpr Vector< t_dims, t_type > operator- () const
 
constexpr Vector< t_dims, t_type > & operator= (const t_type &scaler)
 
constexpr const t_type & operator[] (const uint01 dimension_index) const
 
constexpr t_type & operator[] (uint01 dimension_index)
 
constexpr t_type product () const
 
constexpr t_type sum () const
 
constexpr Vector () noexcept
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &prefix, typename std::enable_if< tdims >=2, const Vector< t_dims - 1, t_type > & >::type vector)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &prefix_a, const t_type &prefix_b, typename std::enable_if< tdims >=3, const Vector< tdims - 1, t_type > & >::type vector)
 
constexpr Vector (const t_type &scaler) noexcept
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, const t_type &w, const t_type &v, const t_type &u, const t_type &t, const t_type &s, typename std::enable_if< tdims==9, const t_type & >::type r)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, const t_type &w, const t_type &v, typename std::enable_if< tdims==6, const t_type & >::type u)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, const t_type &w, typename std::enable_if< tdims==5, const t_type & >::type v)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, typename std::enable_if< tdims==4, const t_type & >::type w)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const typename std::enable_if< tdims==3, const t_type & >::type z)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, typename std::enable_if< tdims==2, const t_type & >::type y)
 
constexpr Vector (const t_type(&vector)[t_dims])
 
template<uint01 tdims = t_dims>
constexpr Vector (const Vector< getMax(tdims - 2, 0), t_type > &vector, const t_type &suffix_a, typename std::enable_if< tdims >=3, const t_type & >::type suffix_b)
 
template<class t_vec_type >
constexpr Vector (const Vector< t_dims, t_vec_type > &vector) noexcept
 
template<uint01 tdims = t_dims>
constexpr Vector (const Vector< tdims - 1, t_type > &vector, typename std::enable_if< tdims >=2, const t_type & >::type suffix)
 

Public Attributes

bool movable
 
fltp04 old_pos
 

Additional Inherited Members

- Static Public Member Functions inherited from Vector< t_dims, t_type >
static constexpr uint01 NumberOfDimensions ()
 
static constexpr t_type Type ()
 
- Protected Attributes inherited from Vector< t_dims, t_type >
t_type m_values [t_dims]
 

Detailed Description

Used with CSF Cloth, The particle class represents a particle of mass that can move around in 3D space.


Constructor & Destructor Documentation

◆ Particle() [1/2]

Particle ( const Vector< 3, fltp04 > & pos)
inline

◆ Particle() [2/2]

Particle ( )
inline

Member Function Documentation

◆ isMovable()

bool isMovable ( ) const
inline

◆ makeUnmovable()

void makeUnmovable ( )
inline

◆ timeStep()

void timeStep ( fltp04 time,
const Vector< 3, fltp04 > & acceleration )
inline

Member Data Documentation

◆ movable

bool movable

◆ old_pos

fltp04 old_pos

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