Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

Plane.CreateFromUnitNormalAndDistance

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static Plane CreateFromUnitNormalAndDistance(float3 unitNormal, float distance);

Parameters

Parameter Description
unitNormal A non-zero vector that is perpendicular to the plane. It must be unit length.
distance Distance from the origin along the normal. A negative value moves the plane in the same direction as the normal while a positive value moves it in the opposite direction.

Returns

Plane Normalized Plane constructed from given inputs.

Description

Creates a normalized Plane directly without normalization cost.

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