chromium/third_party/blink/renderer/platform/transforms/affine_transform.cc

/*
 * Copyright (C) 2005, 2006 Apple Computer, Inc.  All rights reserved.
 *               2010 Dirk Schulze <[email protected]>
 * Copyright (C) 2013 Google Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/platform/transforms/affine_transform.h"

#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "ui/gfx/geometry/decomposed_transform.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/quad_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/transform.h"

namespace blink {

double AffineTransform::XScaleSquared() const {}

double AffineTransform::XScale() const {}

double AffineTransform::YScaleSquared() const {}

double AffineTransform::YScale() const {}

double AffineTransform::Det() const {}

bool AffineTransform::IsInvertible() const {}

AffineTransform AffineTransform::Inverse() const {}

namespace {

inline AffineTransform DoMultiply(const AffineTransform& t1,
                                  const AffineTransform& t2) {}

}  // anonymous namespace

AffineTransform& AffineTransform::PreConcat(const AffineTransform& other) {}

AffineTransform& AffineTransform::PostConcat(const AffineTransform& other) {}

AffineTransform& AffineTransform::Rotate(double a) {}

AffineTransform& AffineTransform::RotateRadians(double a) {}

AffineTransform& AffineTransform::Scale(double s) {}

AffineTransform& AffineTransform::Scale(double sx, double sy) {}

// *this = *this * translation
AffineTransform& AffineTransform::Translate(double tx, double ty) {}

AffineTransform& AffineTransform::ScaleNonUniform(double sx, double sy) {}

AffineTransform& AffineTransform::RotateFromVector(double x, double y) {}

AffineTransform& AffineTransform::FlipX() {}

AffineTransform& AffineTransform::FlipY() {}

AffineTransform& AffineTransform::Shear(double sx, double sy) {}

AffineTransform& AffineTransform::Skew(double angle_x, double angle_y) {}

AffineTransform& AffineTransform::SkewX(double angle) {}

AffineTransform& AffineTransform::SkewY(double angle) {}

gfx::PointF AffineTransform::MapPoint(const gfx::PointF& point) const {}

gfx::Rect AffineTransform::MapRect(const gfx::Rect& rect) const {}

gfx::RectF AffineTransform::MapRect(const gfx::RectF& rect) const {}

gfx::QuadF AffineTransform::MapQuad(const gfx::QuadF& q) const {}

// static
AffineTransform AffineTransform::FromTransform(const gfx::Transform& t) {}

gfx::Transform AffineTransform::ToTransform() const {}

AffineTransform& AffineTransform::Zoom(double zoom_factor) {}

String AffineTransform::ToString(bool as_matrix) const {}

std::ostream& operator<<(std::ostream& ostream,
                         const AffineTransform& transform) {}

}  // namespace blink