Skia
2D Graphics Library
SkV4 Struct Reference

#include <SkM44.h>

Public Member Functions

bool operator== (const SkV4 &v) const
 
bool operator!= (const SkV4 &v) const
 
SkV4 operator- () const
 
SkV4 operator+ (const SkV4 &v) const
 
SkV4 operator- (const SkV4 &v) const
 
SkV4 operator* (const SkV4 &v) const
 
SkScalar lengthSquared () const
 
SkScalar length () const
 
SkScalar dot (const SkV4 &v) const
 
SkV4 normalize () const
 
const float * ptr () const
 
float * ptr ()
 
float operator[] (int i) const
 
float & operator[] (int i)
 

Static Public Member Functions

static SkScalar Dot (const SkV4 &a, const SkV4 &b)
 
static SkV4 Normalize (const SkV4 &v)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Friends

SkV4 operator* (const SkV4 &v, SkScalar s)
 
SkV4 operator* (SkScalar s, const SkV4 &v)
 

Member Function Documentation

◆ Dot()

static SkScalar SkV4::Dot ( const SkV4 a,
const SkV4 b 
)
inlinestatic

◆ dot()

SkScalar SkV4::dot ( const SkV4 v) const
inline

◆ length()

SkScalar SkV4::length ( ) const
inline

◆ lengthSquared()

SkScalar SkV4::lengthSquared ( ) const
inline

◆ normalize()

SkV4 SkV4::normalize ( ) const
inline

◆ Normalize()

static SkV4 SkV4::Normalize ( const SkV4 v)
inlinestatic

◆ operator!=()

bool SkV4::operator!= ( const SkV4 v) const
inline

◆ operator*()

SkV4 SkV4::operator* ( const SkV4 v) const
inline

◆ operator+()

SkV4 SkV4::operator+ ( const SkV4 v) const
inline

◆ operator-() [1/2]

SkV4 SkV4::operator- ( ) const
inline

◆ operator-() [2/2]

SkV4 SkV4::operator- ( const SkV4 v) const
inline

◆ operator==()

bool SkV4::operator== ( const SkV4 v) const
inline

◆ operator[]() [1/2]

float& SkV4::operator[] ( int  i)
inline

◆ operator[]() [2/2]

float SkV4::operator[] ( int  i) const
inline

◆ ptr() [1/2]

float* SkV4::ptr ( )
inline

◆ ptr() [2/2]

const float* SkV4::ptr ( ) const
inline

Friends And Related Function Documentation

◆ operator* [1/2]

SkV4 operator* ( const SkV4 v,
SkScalar  s 
)
friend

◆ operator* [2/2]

SkV4 operator* ( SkScalar  s,
const SkV4 v 
)
friend

Member Data Documentation

◆ w

float SkV4::w

◆ x

float SkV4::x

◆ y

float SkV4::y

◆ z

float SkV4::z

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