Skip to content

Plane

Type

Plane

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

Properties

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

Constructors

Plane.new()

Creates a new plane with all components set to 0.


Plane.new(a, b, c, d)

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

Parameters

  • a (float): The a component (normal X)
  • b (float): The b component (normal Y)
  • c (float): The c component (normal Z)
  • d (float): The d component (distance)

Functions

Overview

HeightAt(position) -> float


HeightAt

Calculates the height (z) at position on the plane.

Parameters

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

Returns

  • float: The height (z) on the plane at position