webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Vector3 Struct Reference

#include <Vector.h>

Public Member Functions

 Vector3 ()
 
 Vector3 (float x, float y, float z)
 
float * data ()
 
const float * data () const
 

Static Public Member Functions

static float length (const Vector3 &vec)
 
static float lengthSquared (const Vector3 &vec)
 
static Vector3 normalize (const Vector3 &vec)
 
static float dot (const Vector3 &a, const Vector3 &b)
 
static Vector3 cross (const Vector3 &a, const Vector3 &b)
 

Public Attributes

float x
 
float y
 
float z
 

Constructor & Destructor Documentation

◆ Vector3() [1/2]

Vector3::Vector3 ( )

◆ Vector3() [2/2]

Vector3::Vector3 ( float  x,
float  y,
float  z 
)

Member Function Documentation

◆ cross()

Vector3 Vector3::cross ( const Vector3 a,
const Vector3 b 
)
static

◆ data() [1/2]

float* Vector3::data ( )
inline

◆ data() [2/2]

const float* Vector3::data ( ) const
inline

◆ dot()

float Vector3::dot ( const Vector3 a,
const Vector3 b 
)
static

◆ length()

float Vector3::length ( const Vector3 vec)
static

◆ lengthSquared()

float Vector3::lengthSquared ( const Vector3 vec)
static

◆ normalize()

Vector3 Vector3::normalize ( const Vector3 vec)
static

Member Data Documentation

◆ x

float Vector3::x

◆ y

float Vector3::y

◆ z

float Vector3::z

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