createXYBox MethodStatic

Create a convex clip plane set that clips to x0 <= x <= x1 and y0 <= y <= y1.

  • Note that there is no test for the usual ordering x0 <= x1 or y0 <= y1.
    • if the usual ordering is violated, the convex set is an empty set.

createXYBox(x0: number, y0: number, x1: number, y1: number, result?: ConvexClipPlaneSet): ConvexClipPlaneSet

Parameter Type Description
x0 number  
y0 number  
x1 number  
y1 number  
result ConvexClipPlaneSet  

Returns - ConvexClipPlaneSet

Defined in

Last Updated: 30 November, 2023