Searched refs:cosTheta (Results 1 - 6 of 6) sorted by relevance
/third_party/skia/src/gpu/ |
H A D | GrDistanceFieldGenFromVector.cpp | 243 const double cosTheta = (p2x - p0x) / hypotenuse; in init() local 248 cosTheta, sinTheta, -(cosTheta * p0x) - (sinTheta * p0y), in init() 249 -sinTheta, cosTheta, (sinTheta * p0x) - (cosTheta * p0y) in init() 306 const double cosTheta = sqrt(a / (a + b)); in init() local 309 const double gDef = cosTheta * g - sinTheta * f; in init() 310 const double fDef = sinTheta * g + cosTheta * f; in init() 321 const double lambda_cosTheta = lambda * cosTheta; in init()
|
/third_party/skia/src/gpu/tessellate/ |
H A D | StrokeTessellator.h | 76 vec<N> cosTheta = skvx::max(1 - 2 / (parametricPrecision * strokeWidths), -1); in ApproxNumRadialSegmentsPerRadian() local 78 return .5f / (skvx::approx_acos(cosTheta) - SKVX_APPROX_ACOS_MAX_ERROR); in ApproxNumRadialSegmentsPerRadian()
|
/third_party/skia/samplecode/ |
H A D | SampleSimpleStroker.cpp | 232 const float cosTheta = before.dot(after); in join() 233 if (SkScalarNearlyZero(1 - cosTheta)) { in join() 248 const float sinHalfTheta = sqrtf(0.5 * (1 + cosTheta)); in join()
|
H A D | SampleVariableWidthStroker.cpp | 791 const float cosTheta = before.dot(after); 792 if (!SkScalarNearlyZero(1 - cosTheta)) { 815 const float sinHalfTheta = sqrtf(0.5 * (1 + cosTheta));
|
/third_party/skia/src/core/ |
H A D | SkGeometry.cpp | 179 float cosTheta = sk_ieee_float_divide(a.dot(b), sqrtf(a.dot(a) * b.dot(b))); in SkMeasureAngleBetweenVectors() local 180 // Pin cosTheta such that if it is NaN (e.g., if a or b was 0), then we return acos(1) = 0. in SkMeasureAngleBetweenVectors() 181 cosTheta = std::max(std::min(1.f, cosTheta), -1.f); in SkMeasureAngleBetweenVectors() 182 return acosf(cosTheta); in SkMeasureAngleBetweenVectors()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
H A D | stylo.hpp | [all...] |
Completed in 42 milliseconds