Normal (geometry) explained

In geometry, a normal is an object (e.g. a line, ray, or vector) that is perpendicular to a given object. For example, the normal line to a plane curve at a given point is the line perpendicular to the tangent line to the curve at the point.

A normal vector of length one is called a unit normal vector. A curvature vector is a normal vector whose length is the curvature of the object. Multiplying a normal vector by results in the opposite vector, which may be used for indicating sides (e.g., interior or exterior).

In three-dimensional space, a surface normal, or simply normal, to a surface at point is a vector perpendicular to the tangent plane of the surface at . The word normal is also used as an adjective: a line normal to a plane, the normal component of a force, the normal vector, etc. The concept of normality generalizes to orthogonality (right angles).

The concept has been generalized to differentiable manifolds of arbitrary dimension embedded in a Euclidean space. The normal vector space or normal space of a manifold at point

P

is the set of vectors which are orthogonal to the tangent space at

P.

Normal vectors are of special interest in the case of smooth curves and smooth surfaces.

The normal is often used in 3D computer graphics (notice the singular, as only one normal will be defined) to determine a surface's orientation toward a light source for flat shading, or the orientation of each of the surface's corners (vertices) to mimic a curved surface with Phong shading.

The foot of a normal at a point of interest Q (analogous to the foot of a perpendicular) can be defined at the point P on the surface where the normal vector contains Q.The normal distance of a point Q to a curve or to a surface is the Euclidean distance between Q and its foot P.

Normal to surfaces in 3D space

Calculating a surface normal

For a convex polygon (such as a triangle), a surface normal can be calculated as the vector cross product of two (non-parallel) edges of the polygon.

For a plane given by the equation

ax+by+cz+d=0,

the vector

n=(a,b,c)

is a normal.

For a plane whose equation is given in parametric form \mathbf(s,t) = \mathbf_0 + s \mathbf + t \mathbf,where

r0

is a point on the plane and

p,q

are non-parallel vectors pointing along the plane, a normal to the plane is a vector normal to both

p

and

q,

which can be found as the cross product

n=p x q.

If a (possibly non-flat) surface

S

in 3D space

\R3

is parameterized by a system of curvilinear coordinates

r(s,t)=(x(s,t),y(s,t),z(s,t)),

with

s

and

t

real variables, then a normal to S is by definition a normal to a tangent plane, given by the cross product of the partial derivatives\mathbf=\frac \times \frac.

If a surface

S

is given implicitly as the set of points

(x,y,z)

satisfying

F(x,y,z)=0,

then a normal at a point

(x,y,z)

on the surface is given by the gradient\mathbf = \nabla F(x, y, z).since the gradient at any point is perpendicular to the level set

S.

For a surface

S

in

\R3

given as the graph of a function

z=f(x,y),

an upward-pointing normal can be found either from the parametrization

r(x,y)=(x,y,f(x,y)),

giving\mathbf = \frac \times \frac= \left(1,0,\tfrac\right) \times \left(0,1,\tfrac\right)= \left(-\tfrac,-\tfrac,1\right);or more simply from its implicit form

F(x,y,z)=z-f(x,y)=0,

giving

n=\nablaF(x,y,z)=\left(-\tfrac{\partialf}{\partialx},-\tfrac{\partialf}{\partialy},1\right).

Since a surface does not have a tangent plane at a singular point, it has no well-defined normal at that point: for example, the vertex of a cone. In general, it is possible to define a normal almost everywhere for a surface that is Lipschitz continuous.

Orientation

The normal to a (hyper)surface is usually scaled to have unit length, but it does not have a unique direction, since its opposite is also a unit normal. For a surface which is the topological boundary of a set in three dimensions, one can distinguish between two normal orientations, the inward-pointing normal and outer-pointing normal. For an oriented surface, the normal is usually determined by the right-hand rule or its analog in higher dimensions.

If the normal is constructed as the cross product of tangent vectors (as described in the text above), it is a pseudovector.

Transforming normals

When applying a transform to a surface it is often useful to derive normals for the resulting surface from the original normals.

Specifically, given a 3×3 transformation matrix

M,

we can determine the matrix

W

that transforms a vector

n

perpendicular to the tangent plane

t

into a vector

n\prime

perpendicular to the transformed tangent plane

Mt,

by the following logic:

Write n′ as

Wn.

We must find

W.

\beginW\mathbb n \text M\mathbb t \quad \,&\text \quad 0 = (W \mathbb n) \cdot (M \mathbb t) \\&\text \quad 0 = (W \mathbb)^\mathrm (M \mathbb) \\&\text \quad 0 = \left(\mathbb^\mathrm W^\mathrm\right) (M \mathbb) \\&\text \quad 0 = \mathbb^\mathrm \left(W^\mathrm M\right) \mathbb \\\end

Choosing

W

such that

WTM=I,

or

W=(M-1)T,

will satisfy the above equation, giving a

Wn

perpendicular to

Mt,

or an

n\prime

perpendicular to

t\prime,

as required.

Therefore, one should use the inverse transpose of the linear transformation when transforming surface normals. The inverse transpose is equal to the original matrix if the matrix is orthonormal, that is, purely rotational with no scaling or shearing.

Hypersurfaces in n-dimensional space

For an

(n-1)

-dimensional hyperplane in

n

-dimensional space

\Rn

given by its parametric representation\mathbf\left(t_1, \ldots, t_\right) = \mathbf_0 + t_1 \mathbf_1 + \cdots + t_\mathbf_,where

p0

is a point on the hyperplane and

pi

for

i=1,\ldots,n-1

are linearly independent vectors pointing along the hyperplane, a normal to the hyperplane is any vector

n

in the null space of the matrix

P=\begin{bmatrix}p1&&pn-1\end{bmatrix},

meaning

Pn=0.

That is, any vector orthogonal to all in-plane vectors is by definition a surface normal. Alternatively, if the hyperplane is defined as the solution set of a single linear equation

a1x1+ … +anxn=c,

then the vector

n=\left(a1,\ldots,an\right)

is a normal.

The definition of a normal to a surface in three-dimensional space can be extended to

(n-1)

-dimensional hypersurfaces in

\Rn.

A hypersurface may be locally defined implicitly as the set of points

(x1,x2,\ldots,xn)

satisfying an equation

F(x1,x2,\ldots,xn)=0,

where

F

is a given scalar function. If

F

is continuously differentiable then the hypersurface is a differentiable manifold in the neighbourhood of the points where the gradient is not zero. At these points a normal vector is given by the gradient:\mathbb n = \nabla F\left(x_1, x_2, \ldots, x_n\right) = \left(\tfrac, \tfrac, \ldots, \tfrac \right)\,.

The normal line is the one-dimensional subspace with basis

\{n\}.

Varieties defined by implicit equations in n-dimensional space

A differential variety defined by implicit equations in the

n

-dimensional space

\Rn

is the set of the common zeros of a finite set of differentiable functions in

n

variables f_1\left(x_1, \ldots, x_n\right), \ldots, f_k\left(x_1, \ldots, x_n\right).The Jacobian matrix of the variety is the

k x n

matrix whose

i

-th row is the gradient of

fi.

By the implicit function theorem, the variety is a manifold in the neighborhood of a point where the Jacobian matrix has rank

k.

At such a point

P,

the normal vector space is the vector space generated by the values at

P

of the gradient vectors of the

fi.

In other words, a variety is defined as the intersection of

k

hypersurfaces, and the normal vector space at a point is the vector space generated by the normal vectors of the hypersurfaces at the point.

The normal (affine) space at a point

P

of the variety is the affine subspace passing through

P

and generated by the normal vector space at

P.

These definitions may be extended to the points where the variety is not a manifold.

Example

Let V be the variety defined in the 3-dimensional space by the equations x\,y = 0, \quad z = 0.This variety is the union of the

x

-axis and the

y

-axis.

At a point

(a,0,0),

where

a0,

the rows of the Jacobian matrix are

(0,0,1)

and

(0,a,0).

Thus the normal affine space is the plane of equation

x=a.

Similarly, if

b0,

the normal plane at

(0,b,0)

is the plane of equation

y=b.

At the point

(0,0,0)

the rows of the Jacobian matrix are

(0,0,1)

and

(0,0,0).

Thus the normal vector space and the normal affine space have dimension 1 and the normal affine space is the

z

-axis.

Uses

Normal in geometric optics

See main article: Specular reflection.

The is the outward-pointing ray perpendicular to the surface of an optical medium at a given point.[2] In reflection of light, the angle of incidence and the angle of reflection are respectively the angle between the normal and the incident ray (on the plane of incidence) and the angle between the normal and the reflected ray.

External links

Notes and References

  1. Web site: Radiometry, BRDF and Photometric Stereo . Ying Wu . Northwestern University.
  2. Web site: The Law of Reflection. The Physics Classroom Tutorial. live. https://web.archive.org/web/20090427131454/http://www.glenbrook.k12.il.us/GBSSCI/PHYS/CLASS/refln/u13l1c.html. April 27, 2009. 2008-03-31.