RenderPlanar¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/render-program/RenderPlanar.ts for the most up-to-date information.
Overview¶
Represents a RenderProgram on a planar (3d) surface.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderPlanar¶
TODO: better name
Constructor¶
new RenderPlanar( program : RenderProgram, pointA : Vector3, pointB : Vector3, pointC : Vector3 )¶
Instance Methods¶
getDepth( x : number, y : number ) : number¶
getDepthRange( face : ClippableFace ) : Range¶
Returns the range of potential depth values included in the face.
getDepthSplit( planar : RenderPlanar, face : ClippableFace ) : { ourFaceFront: ClippableFace | null; otherFaceFront: ClippableFace | null }¶
transformed( transform : Matrix3 ) : RenderPlanar¶
withProgram( program : RenderProgram ) : RenderPlanar¶
Instance Properties¶
plane : Plane3¶
(readonly)
Source Code¶
See the source for RenderPlanar.ts in the alpenglow repository.