init(position0:position1:position2:)
Creates a plane from three positions.
Declaration
init(position0 p0: SIMD3<Float>, position1 p1: SIMD3<Float>, position2 p2: SIMD3<Float>)Parameters
- p0:
The first position on the plane.
- p1:
The second position on the plane.
- p2:
The third position on the plane.
Discussion
The plane’s outward normal is computed as cross(p1 − p0, p2 − p1), so the three positions wind counterclockwise when viewed from the outward (culled) side of the plane.