| 244 | } |
| 245 | |
| 246 | glsl::vec2 GetNormal(LineSegment const & segment, bool isLeft, ENormalType normalType) |
| 247 | { |
| 248 | if (normalType == BaseNormal) |
| 249 | return isLeft ? segment.m_leftBaseNormal : segment.m_rightBaseNormal; |
| 250 | |
| 251 | int const index = (normalType == StartNormal) ? StartPoint : EndPoint; |
| 252 | return isLeft ? segment.m_leftWidthScalar[index].x * segment.m_leftNormals[index] |
| 253 | : segment.m_rightWidthScalar[index].x * segment.m_rightNormals[index]; |
| 254 | } |
| 255 | |
| 256 | float GetProjectionLength(glsl::vec2 const & newPoint, glsl::vec2 const & startPoint, glsl::vec2 const & endPoint) |
| 257 | { |
no outgoing calls
no test coverage detected