blob: 0b014ac3e78a56fbe51694286df2cec979758ce0 [file] [log] [blame]
caryclark@google.com9e49fb62012-08-27 14:11:33 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
caryclark@google.com8dcf1142012-07-02 20:27:02 +00007#include "DataTypes.h"
8
caryclark@google.com27accef2012-01-25 18:57:23 +00009double cube_root(double x);
caryclark@google.comc6825902012-02-03 22:07:47 +000010void coefficients(const double* cubic, double& A, double& B, double& C, double& D);
caryclark@google.com27accef2012-01-25 18:57:23 +000011int cubicRoots(double A, double B, double C, double D, double t[3]);
caryclark@google.com8dcf1142012-07-02 20:27:02 +000012double derivativeAtT(const double* cubic, double t);
13// competing version that should produce same results
14double derivativeAtT_2(const double* cubic, double t);
15void dxdy_at_t(const Cubic& , double t, double& x, double& y);
16bool rotate(const Cubic& cubic, int zero, int index, Cubic& rotPath);
17double secondDerivativeAtT(const double* cubic, double t);
18void xy_at_t(const Cubic& , double t, double& x, double& y);