• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The SwiftShader Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //    http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "Plane.hpp"
16 
17 namespace sw {
18 
Plane()19 Plane::Plane()
20 {
21 }
22 
Plane(float p_A,float p_B,float p_C,float p_D)23 Plane::Plane(float p_A, float p_B, float p_C, float p_D)
24 {
25 	A = p_A;
26 	B = p_B;
27 	C = p_C;
28 	D = p_D;
29 }
30 
Plane(const float ABCD[4])31 Plane::Plane(const float ABCD[4])
32 {
33 	A = ABCD[0];
34 	B = ABCD[1];
35 	C = ABCD[2];
36 	D = ABCD[3];
37 }
38 
39 }  // namespace sw
40