#include "include/core/SkPoint.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkFloatingPoint.h"
#include "src/core/SkPointPriv.h"
#include <cmath>
void SkPoint::scale(float scale, SkPoint* dst) const { … }
bool SkPoint::normalize() { … }
bool SkPoint::setNormalize(float x, float y) { … }
bool SkPoint::setLength(float length) { … }
template <bool use_rsqrt> bool set_point_length(SkPoint* pt, float x, float y, float length,
float* orig_length = nullptr) { … }
float SkPoint::Normalize(SkPoint* pt) { … }
float SkPoint::Length(float dx, float dy) { … }
bool SkPoint::setLength(float x, float y, float length) { … }
bool SkPointPriv::SetLengthFast(SkPoint* pt, float length) { … }
float SkPointPriv::DistanceToLineBetweenSqd(const SkPoint& pt, const SkPoint& a,
const SkPoint& b,
Side* side) { … }
float SkPointPriv::DistanceToLineSegmentBetweenSqd(const SkPoint& pt, const SkPoint& a,
const SkPoint& b) { … }