• Home
  • Raw
  • Download

Lines Matching refs:ClipFloat

41 typedef double ClipFloat; // floating point type used in clipping  typedef
43 typedef tcu::Vector<ClipFloat, 4> ClipVec4;
161 ClipFloat getSegmentVolumeEdgeClip (const ClipFloat v0, in getSegmentVolumeEdgeClip()
162 const ClipFloat w0, in getSegmentVolumeEdgeClip()
163 const ClipFloat v1, in getSegmentVolumeEdgeClip()
164 const ClipFloat w1, in getSegmentVolumeEdgeClip()
165 const ClipFloat plane) in getSegmentVolumeEdgeClip()
169 return (plane*w0 - v0) / ((v1 - v0) - plane*(w1 - w0) + std::numeric_limits<ClipFloat>::epsilon()); in getSegmentVolumeEdgeClip()
178 ClipFloat getLineEndpointClipping (const ClipVec4& v0, const ClipVec4& v1) in getLineEndpointClipping()
180 const ClipFloat clipVolumeSize = (ClipFloat)1.0; in getLineEndpointClipping()
195 return (ClipFloat)0.0; in getLineEndpointClipping()
201 return ClipVec4((ClipFloat)v.x(), (ClipFloat)v.y(), (ClipFloat)v.z(), (ClipFloat)v.w()); in vec4ToClipVec4()
213 virtual ClipFloat clipLineSegmentEnd (const ClipVec4& v0, const ClipVec4& v1) const = 0;
224 ClipFloat clipLineSegmentEnd (const ClipVec4& v0, const ClipVec4& v1) const;
231 const ClipFloat clipVolumeSize = (ClipFloat)1.0; in pointInClipVolume()
233 return (ClipFloat)(Sign * p[CompNdx]) <= clipVolumeSize * p.w(); in pointInClipVolume()
237 ClipFloat ComponentPlane<Sign, CompNdx>::clipLineSegmentEnd (const ClipVec4& v0, const ClipVec4& v1… in clipLineSegmentEnd()
239 const ClipFloat clipVolumeSize = (ClipFloat)1.0; in clipLineSegmentEnd()
243 (ClipFloat)Sign * clipVolumeSize); in clipLineSegmentEnd()
255 const ClipFloat clipRatio = clipLineSegmentEnd(clippedV0, clippedV1); in getLineIntersectionPoint()
258 if (clipRatio <= (ClipFloat)0.5) in getLineIntersectionPoint()
262 const ClipFloat complementClipRatio = clipLineSegmentEnd(clippedV1, clippedV0); in getLineIntersectionPoint()
270 ClipFloat weight[3]; //!< barycentrics
280 const ClipFloat degenerateLimit = (ClipFloat)1.0; in clipTriangleOneVertex()
292 const ClipFloat hitDist = plane.clipLineSegmentEnd(inside.position, outside.position); in clipTriangleOneVertex()
302 …const ClipVec4 anotherPointOnLine = (hitDist > (ClipFloat)0.5) ? (inside.position) : (outside.pos… in clipTriangleOneVertex()
316 const ClipFloat hitDist = plane.clipLineSegmentEnd(inside.position, outside.position); in clipTriangleOneVertex()
326 …const ClipVec4 anotherPointOnLine = (hitDist > (ClipFloat)0.5) ? (inside.position) : (outside.pos… in clipTriangleOneVertex()
354 const ClipFloat unclippableLimit = (ClipFloat)1.0; in clipTriangleTwoVertices()
367 const ClipFloat hitDist = plane.clipLineSegmentEnd(inside.position, outside.position); in clipTriangleTwoVertices()
377 …const ClipVec4 anotherPointOnLine = (hitDist > (ClipFloat)0.5) ? (inside.position) : (outside.pos… in clipTriangleTwoVertices()
391 const ClipFloat hitDist = plane.clipLineSegmentEnd(inside.position, outside.position); in clipTriangleTwoVertices()
401 …const ClipVec4 anotherPointOnLine = (hitDist > (ClipFloat)0.5) ? (inside.position) : (outside.pos… in clipTriangleTwoVertices()
593 initialTri.vertices[0].weight[0] = (ClipFloat)1.0; in clipPrimitives()
594 initialTri.vertices[0].weight[1] = (ClipFloat)0.0; in clipPrimitives()
595 initialTri.vertices[0].weight[2] = (ClipFloat)0.0; in clipPrimitives()
598 initialTri.vertices[1].weight[0] = (ClipFloat)0.0; in clipPrimitives()
599 initialTri.vertices[1].weight[1] = (ClipFloat)1.0; in clipPrimitives()
600 initialTri.vertices[1].weight[2] = (ClipFloat)0.0; in clipPrimitives()
603 initialTri.vertices[2].weight[0] = (ClipFloat)0.0; in clipPrimitives()
604 initialTri.vertices[2].weight[1] = (ClipFloat)0.0; in clipPrimitives()
605 initialTri.vertices[2].weight[2] = (ClipFloat)1.0; in clipPrimitives()
745 const ClipFloat t0 = getLineEndpointClipping(p0, p1); in clipPrimitives()
746 const ClipFloat t1 = getLineEndpointClipping(p1, p0); in clipPrimitives()
749 if (t0 == (ClipFloat)0.0 && t1 == (ClipFloat)0.0) in clipPrimitives()