mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
81 lines
3.1 KiB
C
81 lines
3.1 KiB
C
/*
|
|
* Copyright © 2012 - 2014 Intel Corporation
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
#ifndef __OCL_GEOMETRIC_H__
|
|
#define __OCL_GEOMETRIC_H__
|
|
|
|
#include "ocl_types.h"
|
|
|
|
OVERLOADABLE float dot(float p0, float p1);
|
|
OVERLOADABLE float dot(float2 p0, float2 p1);
|
|
OVERLOADABLE float dot(float3 p0, float3 p1);
|
|
OVERLOADABLE float dot(float4 p0, float4 p1);
|
|
OVERLOADABLE half dot(half p0, half p1);
|
|
OVERLOADABLE half dot(half2 p0, half2 p1);
|
|
OVERLOADABLE half dot(half3 p0, half3 p1);
|
|
OVERLOADABLE half dot(half4 p0, half4 p1);
|
|
OVERLOADABLE float length(float x);
|
|
OVERLOADABLE float length(float2 x);
|
|
OVERLOADABLE float length(float3 x);
|
|
OVERLOADABLE float length(float4 x);
|
|
OVERLOADABLE float distance(float x, float y);
|
|
OVERLOADABLE float distance(float2 x, float2 y);
|
|
OVERLOADABLE float distance(float3 x, float3 y);
|
|
OVERLOADABLE float distance(float4 x, float4 y);
|
|
OVERLOADABLE float normalize(float x);
|
|
OVERLOADABLE float2 normalize(float2 x);
|
|
OVERLOADABLE float3 normalize(float3 x);
|
|
OVERLOADABLE float4 normalize(float4 x);
|
|
|
|
OVERLOADABLE float fast_length(float x);
|
|
OVERLOADABLE float fast_length(float2 x);
|
|
OVERLOADABLE float fast_length(float3 x);
|
|
OVERLOADABLE float fast_length(float4 x);
|
|
OVERLOADABLE float fast_distance(float x, float y);
|
|
OVERLOADABLE float fast_distance(float2 x, float2 y);
|
|
OVERLOADABLE float fast_distance(float3 x, float3 y);
|
|
OVERLOADABLE float fast_distance(float4 x, float4 y);
|
|
OVERLOADABLE float fast_normalize(float x);
|
|
OVERLOADABLE float2 fast_normalize(float2 x);
|
|
OVERLOADABLE float3 fast_normalize(float3 x);
|
|
OVERLOADABLE float4 fast_normalize(float4 x);
|
|
|
|
OVERLOADABLE float3 cross(float3 v0, float3 v1);
|
|
OVERLOADABLE float4 cross(float4 v0, float4 v1);
|
|
|
|
OVERLOADABLE double dot(double p0, double p1);
|
|
OVERLOADABLE double dot(double2 p0, double2 p1);
|
|
OVERLOADABLE double dot(double3 p0, double3 p1);
|
|
OVERLOADABLE double dot(double4 p0, double4 p1);
|
|
OVERLOADABLE double length(double x);
|
|
OVERLOADABLE double length(double2 x);
|
|
OVERLOADABLE double length(double3 x);
|
|
OVERLOADABLE double length(double4 x);
|
|
OVERLOADABLE double distance(double x, double y);
|
|
OVERLOADABLE double distance(double2 x, double2 y);
|
|
OVERLOADABLE double distance(double3 x, double3 y);
|
|
OVERLOADABLE double distance(double4 x, double4 y);
|
|
OVERLOADABLE double normalize(double x);
|
|
OVERLOADABLE double2 normalize(double2 x);
|
|
OVERLOADABLE double3 normalize(double3 x);
|
|
OVERLOADABLE double4 normalize(double4 x);
|
|
OVERLOADABLE double3 cross(double3 v0, double3 v1);
|
|
OVERLOADABLE double4 cross(double4 v0, double4 v1);
|
|
|
|
|
|
#endif
|