Lua
C++
Edit

Plane

A plane is an infinite flat surface in 3D space with a direction and distance from the origin.

Property Type Description
x, y, z float normal
d float distance from the origin
Plane Constructor Plane(const float x, const float y, const float z, const float d)
Plane Constructor Plane(const Vec3 point, const Vec3 normal)
Plane Constructor Plane(const Vec3 a, const Vec3 b, const Vec3 c)
DistanceToPoint Method gets the shortest distance between the plane and a point
IntersectsLine Method test if the plane intersects a line or line segment
Copyright © 2024 Ultra Software.
All rights reserved.