Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
RoR::Vec3 Struct Reference

Designed to work smoothly with optimizations disabled. More...

#include <Vec3.h>

Public Member Functions

 Vec3 ()
 
 Vec3 (float _x, float _y, float _z)
 
 Vec3 (const Ogre::Vector3 &v)
 
Vec3 operator+ (const Vec3 &b) const
 
Vec3 operator- (const Vec3 &b) const
 
Vec3 operator* (float f) const
 
Vec3 operator/ (float f) const
 
Vec3operator+= (const Vec3 &b)
 
Vec3operator-= (const Vec3 &b)
 
Vec3operator*= (float f)
 
Vec3operator/= (float f)
 
 operator Ogre::Vector3 () const
 
Vec3 operator- () const
 
float dotProduct (const Vec3 &b) const
 
Vec3 crossProduct (const Vec3 &b) const
 
float length () const
 
float squaredLength () const
 

Data Fields

float x
 
float y
 
float z
 

Detailed Description

Designed to work smoothly with optimizations disabled.

Definition at line 28 of file Vec3.h.

Constructor & Destructor Documentation

◆ Vec3() [1/3]

RoR::Vec3::Vec3 ( )
inline

Definition at line 32 of file Vec3.h.

◆ Vec3() [2/3]

RoR::Vec3::Vec3 ( float  _x,
float  _y,
float  _z 
)
inline

Definition at line 33 of file Vec3.h.

◆ Vec3() [3/3]

RoR::Vec3::Vec3 ( const Ogre::Vector3 &  v)
inline

Definition at line 34 of file Vec3.h.

Member Function Documentation

◆ crossProduct()

Vec3 RoR::Vec3::crossProduct ( const Vec3 b) const
inline

Definition at line 51 of file Vec3.h.

◆ dotProduct()

float RoR::Vec3::dotProduct ( const Vec3 b) const
inline

Definition at line 50 of file Vec3.h.

◆ length()

float RoR::Vec3::length ( ) const
inline

Definition at line 52 of file Vec3.h.

◆ operator Ogre::Vector3()

RoR::Vec3::operator Ogre::Vector3 ( ) const
inline

Definition at line 46 of file Vec3.h.

◆ operator*()

Vec3 RoR::Vec3::operator* ( float  f) const
inline

Definition at line 38 of file Vec3.h.

◆ operator*=()

Vec3 & RoR::Vec3::operator*= ( float  f)
inline

Definition at line 43 of file Vec3.h.

◆ operator+()

Vec3 RoR::Vec3::operator+ ( const Vec3 b) const
inline

Definition at line 36 of file Vec3.h.

◆ operator+=()

Vec3 & RoR::Vec3::operator+= ( const Vec3 b)
inline

Definition at line 41 of file Vec3.h.

◆ operator-() [1/2]

Vec3 RoR::Vec3::operator- ( ) const
inline

Definition at line 48 of file Vec3.h.

◆ operator-() [2/2]

Vec3 RoR::Vec3::operator- ( const Vec3 b) const
inline

Definition at line 37 of file Vec3.h.

◆ operator-=()

Vec3 & RoR::Vec3::operator-= ( const Vec3 b)
inline

Definition at line 42 of file Vec3.h.

◆ operator/()

Vec3 RoR::Vec3::operator/ ( float  f) const
inline

Definition at line 39 of file Vec3.h.

◆ operator/=()

Vec3 & RoR::Vec3::operator/= ( float  f)
inline

Definition at line 44 of file Vec3.h.

◆ squaredLength()

float RoR::Vec3::squaredLength ( ) const
inline

Definition at line 53 of file Vec3.h.

Field Documentation

◆ x

float RoR::Vec3::x

Definition at line 30 of file Vec3.h.

◆ y

float RoR::Vec3::y

Definition at line 30 of file Vec3.h.

◆ z

float RoR::Vec3::z

Definition at line 30 of file Vec3.h.


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