Flutter Engine
The Flutter Engine
|
#include <SkPoint3.h>
Public Member Functions | |
SkScalar | x () const |
SkScalar | y () const |
SkScalar | z () const |
void | set (SkScalar x, SkScalar y, SkScalar z) |
SkScalar | length () const |
bool | normalize () |
SkPoint3 | makeScale (SkScalar scale) const |
void | scale (SkScalar value) |
SkPoint3 | operator- () const |
void | operator+= (const SkPoint3 &v) |
void | operator-= (const SkPoint3 &v) |
bool | isFinite () const |
SkScalar | dot (const SkPoint3 &vec) const |
SkPoint3 | cross (const SkPoint3 &vec) const |
Static Public Member Functions | |
static SkPoint3 | Make (SkScalar x, SkScalar y, SkScalar z) |
static SkScalar | Length (SkScalar x, SkScalar y, SkScalar z) |
static SkScalar | DotProduct (const SkPoint3 &a, const SkPoint3 &b) |
static SkPoint3 | CrossProduct (const SkPoint3 &a, const SkPoint3 &b) |
Public Attributes | |
SkScalar | fX |
SkScalar | fY |
SkScalar | fZ |
Friends | |
bool | operator== (const SkPoint3 &a, const SkPoint3 &b) |
bool | operator!= (const SkPoint3 &a, const SkPoint3 &b) |
SkPoint3 | operator- (const SkPoint3 &a, const SkPoint3 &b) |
SkPoint3 | operator+ (const SkPoint3 &a, const SkPoint3 &b) |
SkPoint3 | operator* (SkScalar t, SkPoint3 p) |
Definition at line 15 of file SkPoint3.h.
Definition at line 141 of file SkPoint3.h.
Returns the cross product of a and b, treating them as 3D vectors
Definition at line 132 of file SkPoint3.h.
Definition at line 126 of file SkPoint3.h.
|
inline |
Returns true if fX, fY, and fZ are measurable values.
Definition at line 116 of file SkPoint3.h.
|
inline |
Return the Euclidian distance from (0,0,0) to the point
Definition at line 44 of file SkPoint3.h.
Returns the Euclidian distance from (0,0,0) to (x,y,z)
Definition at line 29 of file SkPoint3.cpp.
Definition at line 18 of file SkPoint3.h.
Return a new point whose X, Y and Z coordinates are scaled.
Definition at line 54 of file SkPoint3.h.
bool SkPoint3::normalize | ( | ) |
Set the point (vector) to be unit-length in the same direction as it already points. If the point has a degenerate length (i.e., nearly 0) then set it to (0,0,0) and return false; otherwise return true.
Definition at line 49 of file SkPoint3.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 24 of file SkPoint3.h.
|
inline |
Definition at line 25 of file SkPoint3.h.
|
inline |
Definition at line 26 of file SkPoint3.h.
Definition at line 34 of file SkPoint3.h.
Definition at line 108 of file SkPoint3.h.
SkScalar SkPoint3::fX |
Definition at line 16 of file SkPoint3.h.
SkScalar SkPoint3::fY |
Definition at line 16 of file SkPoint3.h.
SkScalar SkPoint3::fZ |
Definition at line 16 of file SkPoint3.h.