#include <SkPoint3.h>
|
static SkPoint3 | Make (SkScalar x, SkScalar y, SkScalar z) |
|
static SkScalar | Length (SkScalar x, SkScalar y, SkScalar z) |
| Returns the Euclidian distance from (0,0,0) to (x,y,z) More...
|
|
static SkScalar | DotProduct (const SkPoint3 &a, const SkPoint3 &b) |
| Returns the dot product of a and b, treating them as 3D vectors. More...
|
|
static SkPoint3 | CrossProduct (const SkPoint3 &a, const SkPoint3 &b) |
| Returns the cross product of a and b, treating them as 3D vectors. More...
|
|
◆ cross()
◆ CrossProduct()
Returns the cross product of a and b, treating them as 3D vectors.
◆ dot()
◆ DotProduct()
Returns the dot product of a and b, treating them as 3D vectors.
◆ isFinite()
bool SkPoint3::isFinite |
( |
| ) |
const |
|
inline |
Returns true if fX, fY, and fZ are measurable values.
- Returns
- true for values other than infinities and NaN
◆ length()
Return the Euclidian distance from (0,0,0) to the point.
◆ Length()
Returns the Euclidian distance from (0,0,0) to (x,y,z)
◆ Make()
◆ makeScale()
Return a new point whose X, Y and Z coordinates are scaled.
◆ normalize()
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.
◆ operator+=()
void SkPoint3::operator+= |
( |
const SkPoint3 & |
v | ) |
|
|
inline |
Add v's coordinates to the point's.
◆ operator-()
Return a new point whose X, Y and Z coordinates are the negative of the original point's.
◆ operator-=()
void SkPoint3::operator-= |
( |
const SkPoint3 & |
v | ) |
|
|
inline |
Subtract v's coordinates from the point's.
◆ scale()
Scale the point's coordinates by scale.
◆ set()
◆ x()
◆ y()
◆ z()
◆ operator!=
◆ operator*
◆ operator+
Returns a new point whose coordinates are the sum of a and b (a + b)
◆ operator-
Returns a new point whose coordinates are the difference between a and b (i.e., a - b)
◆ operator==
◆ fX
◆ fY
◆ fZ
The documentation for this struct was generated from the following file: