Path: blob/master/thirdparty/rvo2/rvo2_3d/Definitions.h
9906 views
/*1* Definitions.h2* RVO2-3D Library3*4* Copyright 2008 University of North Carolina at Chapel Hill5*6* Licensed under the Apache License, Version 2.0 (the "License");7* you may not use this file except in compliance with the License.8* You may obtain a copy of the License at9*10* https://www.apache.org/licenses/LICENSE-2.011*12* Unless required by applicable law or agreed to in writing, software13* distributed under the License is distributed on an "AS IS" BASIS,14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15* See the License for the specific language governing permissions and16* limitations under the License.17*18* Please send all bug reports to <[email protected]>.19*20* The authors may be contacted via:21*22* Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha23* Dept. of Computer Science24* 201 S. Columbia St.25* Frederick P. Brooks, Jr. Computer Science Bldg.26* Chapel Hill, N.C. 27599-317527* United States of America28*29* <https://gamma.cs.unc.edu/RVO2/>30*/3132/**33* \file Definitions.h34* \brief Contains functions and constants used in multiple classes.35*/3637#ifndef RVO3D_DEFINITIONS_H_38#define RVO3D_DEFINITIONS_H_3940namespace RVO3D {41/**42* \brief Computes the square of a float.43* \param scalar The float to be squared.44* \return The square of the float.45*/46inline float sqr(float scalar)47{48return scalar * scalar;49}50}5152#endif /* RVO3D_DEFINITIONS_H_ */535455