Plane

A geometrical Plane, represented in general form (ax+by+cz+d = 0).

Properties

Property Type Description
a number Normal X component
b number Normal Y component
c number Normal Z component
d number Distance component

Constructors

new ( )
Creates a new plane with all components set to 0.

new ( number a, number b, number c, number d )
Creates a new plane with the given a, b, c and d components.

Functions

heightAt

Parameters

  • Point position: The 2D position to find the plane height at

Returns number

Returns the height (z) on the plane at position