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

#include <Vector.h>

Public Member Functions

 Vector2 ()
 
 Vector2 (float x, float y)
 
bool operator== (const Vector2 &vec) const
 
bool operator!= (const Vector2 &vec) const
 
float * data ()
 
const float * data () const
 

Static Public Member Functions

static float length (const Vector2 &vec)
 
static float lengthSquared (const Vector2 &vec)
 
static Vector2 normalize (const Vector2 &vec)
 

Public Attributes

float x
 
float y
 

Constructor & Destructor Documentation

◆ Vector2() [1/2]

Vector2::Vector2 ( )

◆ Vector2() [2/2]

Vector2::Vector2 ( float  x,
float  y 
)

Member Function Documentation

◆ data() [1/2]

float* Vector2::data ( )
inline

◆ data() [2/2]

const float* Vector2::data ( ) const
inline

◆ length()

float Vector2::length ( const Vector2 vec)
static

◆ lengthSquared()

float Vector2::lengthSquared ( const Vector2 vec)
static

◆ normalize()

Vector2 Vector2::normalize ( const Vector2 vec)
static

◆ operator!=()

bool Vector2::operator!= ( const Vector2 vec) const

◆ operator==()

bool Vector2::operator== ( const Vector2 vec) const

Member Data Documentation

◆ x

float Vector2::x

◆ y

float Vector2::y

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