fromPointNormal

fun fromPointNormal(point: Cartesian3, normal: Cartesian3, result: Plane? = definedExternally): Plane(source)

Creates a plane from a normal and a point on the plane.

const point = Cartesian3.fromDegrees(-72.0, 40.0);
const normal = ellipsoid.geodeticSurfaceNormal(point);
const tangentPlane = Plane.fromPointNormal(point, normal);

Return

A new plane instance or the modified result parameter.

Parameters

point

The point on the plane.

normal

The plane's normal (normalized).

result

The object onto which to store the result.

See also