#include <GrTriangulator.h>
Definition at line 358 of file GrTriangulator.h.
◆ Line() [1/3]
GrTriangulator::Line::Line |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c |
|
) |
| |
|
inline |
◆ Line() [2/3]
◆ Line() [3/3]
Definition at line 361 of file GrTriangulator.h.
362 :
fA(
static_cast<double>(q.
fY) -
p.fY)
363 ,
fB(
static_cast<double>(
p.fX) - q.
fX)
364 ,
fC(
static_cast<double>(
p.fY) * q.
fX -
365 static_cast<double>(
p.fX) * q.
fY) {}
◆ dist()
double GrTriangulator::Line::dist |
( |
const SkPoint & |
p | ) |
const |
|
inline |
◆ intersect()
bool GrTriangulator::Line::intersect |
( |
const Line & |
other, |
|
|
SkPoint * |
point |
|
) |
| const |
Definition at line 155 of file GrTriangulator.cpp.
155 {
156 double denom =
fA * other.
fB -
fB * other.
fA;
157 if (denom == 0.0) {
158 return false;
159 }
160 double scale = 1.0 / denom;
165}
static void round(SkPoint *p)
static SkScalar double_to_clamped_scalar(double d)
◆ magSq()
double GrTriangulator::Line::magSq |
( |
| ) |
const |
|
inline |
◆ nearParallel()
bool GrTriangulator::Line::nearParallel |
( |
const Line & |
o | ) |
const |
|
inline |
◆ normalize()
void GrTriangulator::Line::normalize |
( |
| ) |
|
|
inline |
Definition at line 369 of file GrTriangulator.h.
369 {
371 if (len == 0.0) {
372 return;
373 }
378 }
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
◆ operator*()
Line GrTriangulator::Line::operator* |
( |
double |
v | ) |
const |
|
inline |
◆ fA
double GrTriangulator::Line::fA |
◆ fB
double GrTriangulator::Line::fB |
◆ fC
double GrTriangulator::Line::fC |
The documentation for this struct was generated from the following files: