Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateFromUnitNormalAndPointInPlane(float3, float3)

Creates a normalized Plane without normalization cost.
Read time 1 minuteLast updated 9 days ago

Definition

public static Plane CreateFromUnitNormalAndPointInPlane(float3 unitNormal, float3 pointInPlane)

Parameters

unitNormal

A non-zero vector that is perpendicular to the plane. It must be unit length.

pointInPlane

A point that lies in the plane.

Returns

Type

Description

PlaneNormalized Plane constructed from given inputs.

Remarks

If you have a unit length normal vector, you can create a Plane faster than using one of its constructors by calling this function.