| Index: third_party/freetype/include/freetype/internal/ftcalc.h
|
| diff --git a/third_party/freetype/include/internal/ftcalc.h b/third_party/freetype/include/freetype/internal/ftcalc.h
|
| similarity index 96%
|
| rename from third_party/freetype/include/internal/ftcalc.h
|
| rename to third_party/freetype/include/freetype/internal/ftcalc.h
|
| index 14ec37b9cd1b7e2cb708883a9465982228df128f..67ade7e5f947c986315eb2b8c3ccbd3bbb00c4be 100644
|
| --- a/third_party/freetype/include/internal/ftcalc.h
|
| +++ b/third_party/freetype/include/freetype/internal/ftcalc.h
|
| @@ -4,7 +4,7 @@
|
| /* */
|
| /* Arithmetic computations (specification). */
|
| /* */
|
| -/* Copyright 1996-2006, 2008, 2009, 2012-2014 by */
|
| +/* Copyright 1996-2015 by */
|
| /* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
| /* */
|
| /* This file is part of the FreeType project, and may only be used, */
|
| @@ -300,6 +300,18 @@ FT_BEGIN_HEADER
|
|
|
|
|
| /*
|
| + * This function normalizes a vector and returns its original length.
|
| + * The normalized vector is a 16.16 fixed-point unit vector with length
|
| + * close to 0x10000. The accuracy of the returned length is limited to
|
| + * 16 bits also. The function utilizes quick inverse square root
|
| + * approximation without divisions and square roots relying on Newton's
|
| + * iterations instead.
|
| + */
|
| + FT_BASE( FT_UInt32 )
|
| + FT_Vector_NormLen( FT_Vector* vector );
|
| +
|
| +
|
| + /*
|
| * Return -1, 0, or +1, depending on the orientation of a given corner.
|
| * We use the Cartesian coordinate system, with positive vertical values
|
| * going upwards. The function returns +1 if the corner turns to the
|
|
|