mirror of
https://github.com/godotengine/godot
synced 2024-10-14 11:58:36 +00:00
[Core] Change math_2d includes to vector2 includes where relevant
This commit is contained in:
parent
9d1b5f4e3b
commit
28fc195339
|
@ -31,7 +31,7 @@
|
||||||
#ifndef TRIANGULATE_H
|
#ifndef TRIANGULATE_H
|
||||||
#define TRIANGULATE_H
|
#define TRIANGULATE_H
|
||||||
|
|
||||||
#include "math_2d.h"
|
#include "vector2.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml
|
http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
#ifndef B2D_DECOMPOSE_H
|
#ifndef B2D_DECOMPOSE_H
|
||||||
#define B2D_DECOMPOSE_H
|
#define B2D_DECOMPOSE_H
|
||||||
|
|
||||||
#include "math_2d.h"
|
|
||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
|
#include "vector2.h"
|
||||||
Vector<Vector<Vector2> > b2d_decompose(const Vector<Vector2> &p_polygon);
|
Vector<Vector<Vector2> > b2d_decompose(const Vector<Vector2> &p_polygon);
|
||||||
|
|
||||||
#endif // B2D_DECOMPOSE_H
|
#endif // B2D_DECOMPOSE_H
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include "dvector.h"
|
#include "dvector.h"
|
||||||
|
|
||||||
#include "core/color.h"
|
#include "core/color.h"
|
||||||
#include "core/math/math_2d.h"
|
#include "core/math/vector2.h"
|
||||||
#include "core/math/vector3.h"
|
#include "core/math/vector3.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "gdnative/vector2.h"
|
#include "gdnative/vector2.h"
|
||||||
|
|
||||||
#include "core/math/math_2d.h"
|
#include "core/math/vector2.h"
|
||||||
#include "core/variant.h"
|
#include "core/variant.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
|
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
#include "line_2d.h"
|
#include "line_2d.h"
|
||||||
#include "math_2d.h"
|
|
||||||
#include "scene/resources/color_ramp.h"
|
#include "scene/resources/color_ramp.h"
|
||||||
|
#include "vector2.h"
|
||||||
|
|
||||||
class LineBuilder {
|
class LineBuilder {
|
||||||
public:
|
public:
|
||||||
|
|
2
thirdparty/b2d_convexdecomp/b2Glue.h
vendored
2
thirdparty/b2d_convexdecomp/b2Glue.h
vendored
|
@ -19,7 +19,7 @@
|
||||||
#ifndef B2GLUE_H
|
#ifndef B2GLUE_H
|
||||||
#define B2GLUE_H
|
#define B2GLUE_H
|
||||||
|
|
||||||
#include "math_2d.h"
|
#include "vector2.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
namespace b2ConvexDecomp {
|
namespace b2ConvexDecomp {
|
||||||
|
|
2
thirdparty/misc/triangulator.h
vendored
2
thirdparty/misc/triangulator.h
vendored
|
@ -21,9 +21,9 @@
|
||||||
#ifndef TRIANGULATOR_H
|
#ifndef TRIANGULATOR_H
|
||||||
#define TRIANGULATOR_H
|
#define TRIANGULATOR_H
|
||||||
|
|
||||||
#include "math_2d.h"
|
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
#include "set.h"
|
#include "set.h"
|
||||||
|
#include "vector2.h"
|
||||||
//2D point structure
|
//2D point structure
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue