CARLA
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
vec3f Struct Reference

#include <Simplify.h>

Public Member Functions

double angle (const vec3f &v)
 
double angle2 (const vec3f &v, const vec3f &w)
 
void clamp (double min, double max)
 
vec3f cross (const vec3f &a, const vec3f &b)
 
double dot (const vec3f &a) const
 
vec3f frac ()
 
vec3f integer ()
 
vec3f invert ()
 
double length () const
 
vec3f normalize (double=1)
 
vec3f operator* (const double a) const
 
vec3f operator* (const vec3f a) const
 
vec3f operator+ (const vec3f &a) const
 
vec3f operator+= (const vec3f &a) const
 
vec3f operator- (const vec3f &a) const
 
vec3f operator/ (const double a) const
 
vec3f operator/ (const vec3f a) const
 
vec3f operator= (const vec3f a)
 
vec3f operator= (const vector3 a)
 
vec3f random01_fxyz ()
 
double random_double_01 (double a)
 
vec3f rot_x (double a)
 
vec3f rot_y (double a)
 
vec3f rot_z (double a)
 
vec3f v3 () const
 
 vec3f (const double X, const double Y, const double Z)
 
 vec3f (const vec3f &a)
 
 vec3f (vector3 a)
 
 vec3f (void)
 

Static Public Member Functions

static vec3f normalize (vec3f a)
 
static vec3f random ()
 
static double random_double ()
 
static void random_init ()
 

Public Attributes

double x
 
double y
 
double z
 

Static Public Attributes

static int random_number
 

Detailed Description

Definition at line 35 of file Simplify.h.

Constructor & Destructor Documentation

◆ vec3f() [1/4]

vec3f::vec3f ( void  )
inline

◆ vec3f() [2/4]

vec3f::vec3f ( const vec3f &  a)
inline

Definition at line 41 of file Simplify.h.

◆ vec3f() [3/4]

vec3f::vec3f ( vector3  a)
inline

Definition at line 43 of file Simplify.h.

References vector3::x, x, vector3::y, y, vector3::z, and z.

◆ vec3f() [4/4]

vec3f::vec3f ( const double  X,
const double  Y,
const double  Z 
)
inline

Definition at line 50 of file Simplify.h.

References x, y, and z.

Member Function Documentation

◆ angle()

double vec3f::angle ( const vec3f &  v)
inline

Definition at line 126 of file Simplify.h.

References dot(), length(), x, y, and z.

◆ angle2()

double vec3f::angle2 ( const vec3f &  v,
const vec3f &  w 
)
inline

Definition at line 141 of file Simplify.h.

References cross(), dot(), length(), x, y, and z.

◆ clamp()

void vec3f::clamp ( double  min,
double  max 
)
inline

Definition at line 174 of file Simplify.h.

References min(), x, y, and z.

◆ cross()

vec3f vec3f::cross ( const vec3f &  a,
const vec3f &  b 
)
inline

Definition at line 118 of file Simplify.h.

References x, y, and z.

Referenced by angle2(), Simplify::SimplificationObject::flipped(), and Simplify::SimplificationObject::update_mesh().

◆ dot()

double vec3f::dot ( const vec3f &  a) const
inline

◆ frac()

vec3f vec3f::frac ( )
inline

Definition at line 204 of file Simplify.h.

References vec3f(), x, y, and z.

◆ integer()

vec3f vec3f::integer ( )
inline

Definition at line 212 of file Simplify.h.

References vec3f(), x, y, and z.

◆ invert()

vec3f vec3f::invert ( )
inline

Definition at line 197 of file Simplify.h.

References x, y, and z.

◆ length()

double vec3f::length ( ) const
inline

Definition at line 220 of file Simplify.h.

References x, y, and z.

Referenced by angle(), and angle2().

◆ normalize() [1/2]

vec3f vec3f::normalize ( double  = 1)
inline

Definition at line 225 of file Simplify.h.

References x, y, and z.

Referenced by Simplify::SimplificationObject::flipped(), and Simplify::SimplificationObject::update_mesh().

◆ normalize() [2/2]

static vec3f vec3f::normalize ( vec3f  a)
static

◆ operator*() [1/2]

vec3f vec3f::operator* ( const double  a) const
inline

Definition at line 67 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator*() [2/2]

vec3f vec3f::operator* ( const vec3f  a) const
inline

Definition at line 72 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator+()

vec3f vec3f::operator+ ( const vec3f &  a) const
inline

Definition at line 57 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator+=()

vec3f vec3f::operator+= ( const vec3f &  a) const
inline

Definition at line 62 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator-()

vec3f vec3f::operator- ( const vec3f &  a) const
inline

Definition at line 103 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator/() [1/2]

vec3f vec3f::operator/ ( const double  a) const
inline

Definition at line 108 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator/() [2/2]

vec3f vec3f::operator/ ( const vec3f  a) const
inline

Definition at line 98 of file Simplify.h.

References vec3f(), x, y, and z.

◆ operator=() [1/2]

vec3f vec3f::operator= ( const vec3f  a)
inline

Definition at line 90 of file Simplify.h.

References x, y, and z.

◆ operator=() [2/2]

vec3f vec3f::operator= ( const vector3  a)
inline

Definition at line 82 of file Simplify.h.

References vector3::x, x, vector3::y, y, vector3::z, and z.

◆ random()

static vec3f vec3f::random ( )
static

◆ random01_fxyz()

vec3f vec3f::random01_fxyz ( )
inline

Definition at line 249 of file Simplify.h.

References random_double_01(), x, y, and z.

◆ random_double()

static double vec3f::random_double ( )
static

◆ random_double_01()

double vec3f::random_double_01 ( double  a)
inline

Definition at line 242 of file Simplify.h.

Referenced by random01_fxyz().

◆ random_init()

static void vec3f::random_init ( )
static

◆ rot_x()

vec3f vec3f::rot_x ( double  a)
inline

Definition at line 158 of file Simplify.h.

References y, and z.

◆ rot_y()

vec3f vec3f::rot_y ( double  a)
inline

Definition at line 166 of file Simplify.h.

References x, and z.

◆ rot_z()

vec3f vec3f::rot_z ( double  a)
inline

Definition at line 189 of file Simplify.h.

References x, and y.

◆ v3()

vec3f vec3f::v3 ( ) const
inline

Definition at line 77 of file Simplify.h.

References vec3f(), x, y, and z.

Member Data Documentation

◆ random_number

int vec3f::random_number
static

Definition at line 240 of file Simplify.h.

◆ x

double vec3f::x

◆ y

double vec3f::y

◆ z

double vec3f::z

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