blob: f18281185b0beb9d399232c669281fec1b7f8a77 [file] [log] [blame]
ziadbbceddbc2018-06-19 13:57:15 -04001/*
2 * Copyright 2018 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 */
7
8#ifndef Sk3D_DEFINED
9#define Sk3D_DEFINED
10
11#include "SkPoint3.h"
12#include "SkMatrix44.h"
13
14SK_API void Sk3LookAt(SkMatrix44* dst, const SkPoint3& eye, const SkPoint3& center, const SkPoint3& up);
15SK_API bool Sk3Perspective(SkMatrix44* dst, float near, float far, float angle);
16SK_API void Sk3MapPts(SkPoint dst[], const SkMatrix44& m4, const SkPoint3 src[], int count);
17
18#endif
19