Skia
2D Graphics Library
SkV3 Struct Reference

#include <SkM44.h>

Public Member Functions

bool operator== (const SkV3 &v) const
 
bool operator!= (const SkV3 &v) const
 
SkV3 operator- () const
 
SkV3 operator+ (const SkV3 &v) const
 
SkV3 operator- (const SkV3 &v) const
 
SkV3 operator* (const SkV3 &v) const
 
void operator+= (SkV3 v)
 
void operator-= (SkV3 v)
 
void operator*= (SkV3 v)
 
void operator*= (SkScalar s)
 
SkScalar lengthSquared () const
 
SkScalar length () const
 
SkScalar dot (const SkV3 &v) const
 
SkV3 cross (const SkV3 &v) const
 
SkV3 normalize () const
 
const float * ptr () const
 
float * ptr ()
 

Static Public Member Functions

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

Public Attributes

float x
 
float y
 
float z
 

Friends

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

Member Function Documentation

◆ Cross()

static SkV3 SkV3::Cross ( const SkV3 a,
const SkV3 b 
)
inlinestatic

◆ cross()

SkV3 SkV3::cross ( const SkV3 v) const
inline

◆ Dot()

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

◆ dot()

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

◆ length()

SkScalar SkV3::length ( ) const
inline

◆ lengthSquared()

SkScalar SkV3::lengthSquared ( ) const
inline

◆ normalize()

SkV3 SkV3::normalize ( ) const
inline

◆ Normalize()

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

◆ operator!=()

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

◆ operator*()

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

◆ operator*=() [1/2]

void SkV3::operator*= ( SkScalar  s)
inline

◆ operator*=() [2/2]

void SkV3::operator*= ( SkV3  v)
inline

◆ operator+()

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

◆ operator+=()

void SkV3::operator+= ( SkV3  v)
inline

◆ operator-() [1/2]

SkV3 SkV3::operator- ( ) const
inline

◆ operator-() [2/2]

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

◆ operator-=()

void SkV3::operator-= ( SkV3  v)
inline

◆ operator==()

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

◆ ptr() [1/2]

float* SkV3::ptr ( )
inline

◆ ptr() [2/2]

const float* SkV3::ptr ( ) const
inline

Friends And Related Function Documentation

◆ operator* [1/2]

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

◆ operator* [2/2]

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

Member Data Documentation

◆ x

float SkV3::x

◆ y

float SkV3::y

◆ z

float SkV3::z

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