Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Normal (geometry)

From Wikipedia, the free encyclopedia
Line or vector perpendicular to a curve or a surface
A polygon and its two normal vectors
A normal to a surface at a point is the same as a normal to the tangent plane to the surface at the same point.
Tangent and normal to a curve in aCartesian coordinate system.

Ingeometry, anormal is anobject (e.g. aline,ray, orvector) that isperpendicular to a given object. For example, thenormal line to aplane curve at a givenpoint is the infinite straight line perpendicular to thetangent line to the curve at the point.

Anormal vector is avector perpendicular to a given object at a particular point.A normalvector of length one is called aunit normal vector ornormal direction. Acurvature vector is a normal vector whose length is thecurvature of the object. Multiplying a normal vector by−1 results in theopposite vector, which may be used for indicating sides (e.g., interior or exterior) or orientation (e.g., clockwise vs. counterclockwise,right handed vs. left handed).

Inthree-dimensional space, asurface normal, or simplynormal, to asurface at pointP is a vector perpendicular to thetangent plane of the surface atP. Thevector field of normal directions to a surface is known asGauss map. The word "normal" is also used as an adjective: a linenormal to aplane, thenormal component of aforce, etc. The concept of normality generalizes toorthogonality (right angles).

The concept has been generalized todifferentiable manifolds of arbitrary dimension embedded in aEuclidean space. Thenormal vector space ornormal space of a manifold at pointP{\displaystyle P} is the set of vectors which are orthogonal to thetangent space atP.{\displaystyle P.}Normal vectors are of special interest in the case ofsmooth curves andsmooth surfaces.

The normal is often used in3D computer graphics (notice the singular, as only one normal will be defined) to determine a surface's orientation toward alight source forflat shading, or the orientation of each of the surface's corners (vertices) to mimic a curved surface withPhong shading.

Thefoot of a normal at a point of interestQ (analogous to thefoot of a perpendicular) can be defined at the pointP on the surface where the normal vector containsQ.Thenormal distance of a pointQ to a curve or to a surface is theEuclidean distance betweenQ and its footP.

Normal to space curves

[edit]
Main article:Frenet–Serret formulas
Further information:Curvature vector
Normal direction (in red) to a curve (in black).

The normal direction to aspace curve is:

N=RdTds{\displaystyle \mathbf {N} =R{\frac {\mathrm {d} \mathbf {T} }{\mathrm {d} s}}}

whereR=κ1{\displaystyle R=\kappa ^{-1}} is theradius of curvature (reciprocalcurvature);T{\displaystyle \mathbf {T} } is thetangent vector, in terms of the curve positionr{\displaystyle \mathbf {r} } and arc-lengths{\displaystyle s}:

T=drds{\displaystyle \mathbf {T} ={\frac {\mathrm {d} \mathbf {r} }{\mathrm {d} s}}}

Normal to planes and polygons

[edit]
Plane equation in normal form

For aconvexpolygon (such as atriangle), a surface normal can be calculated as the vectorcross product of two (non-parallel) edges of the polygon.

For aplane given by the general formplane equationax+by+cz+d=0,{\displaystyle ax+by+cz+d=0,} the vectorn=(a,b,c){\displaystyle \mathbf {n} =(a,b,c)} is a normal.

For a plane whose equation is given in parametric formr(s,t)=r0+sp+tq,{\displaystyle \mathbf {r} (s,t)=\mathbf {r} _{0}+s\mathbf {p} +t\mathbf {q} ,}wherer0{\displaystyle \mathbf {r} _{0}} is a point on the plane andp,q{\displaystyle \mathbf {p} ,\mathbf {q} } are non-parallel vectors pointing along the plane, a normal to the plane is a vector normal to bothp{\displaystyle \mathbf {p} } andq,{\displaystyle \mathbf {q} ,} which can be found as thecross productn=p×q.{\displaystyle \mathbf {n} =\mathbf {p} \times \mathbf {q} .}

Normal to general surfaces in 3D space

[edit]
A curved surface showing the unit normal vectors (blue arrows) to the surface

If a (possibly non-flat) surfaceS{\displaystyle S} in 3D spaceR3{\displaystyle \mathbb {R} ^{3}} isparameterized by a system ofcurvilinear coordinatesr(s,t)=(x(s,t),y(s,t),z(s,t)),{\displaystyle \mathbf {r} (s,t)=(x(s,t),y(s,t),z(s,t)),} withs{\displaystyle s} andt{\displaystyle t}real variables, then a normal toS is by definition a normal to a tangent plane, given by the cross product of thepartial derivativesn=rs×rt.{\displaystyle \mathbf {n} ={\frac {\partial \mathbf {r} }{\partial s}}\times {\frac {\partial \mathbf {r} }{\partial t}}.}

If a surfaceS{\displaystyle S} is givenimplicitly as the set of points(x,y,z){\displaystyle (x,y,z)} satisfyingF(x,y,z)=0,{\displaystyle F(x,y,z)=0,} then a normal at a point(x,y,z){\displaystyle (x,y,z)} on the surface is given by thegradientn=F(x,y,z).{\displaystyle \mathbf {n} =\nabla F(x,y,z).}sincethe gradient at any point is perpendicular to the level setS.{\displaystyle S.}

For a surfaceS{\displaystyle S} inR3{\displaystyle \mathbb {R} ^{3}} given as the graph of a functionz=f(x,y),{\displaystyle z=f(x,y),} an upward-pointing normal can be found either from the parametrizationr(x,y)=(x,y,f(x,y)),{\displaystyle \mathbf {r} (x,y)=(x,y,f(x,y)),} givingn=rx×ry=(1,0,fx)×(0,1,fy)=(fx,fy,1);{\displaystyle \mathbf {n} ={\frac {\partial \mathbf {r} }{\partial x}}\times {\frac {\partial \mathbf {r} }{\partial y}}=\left(1,0,{\tfrac {\partial f}{\partial x}}\right)\times \left(0,1,{\tfrac {\partial f}{\partial y}}\right)=\left(-{\tfrac {\partial f}{\partial x}},-{\tfrac {\partial f}{\partial y}},1\right);}or more simply from its implicit formF(x,y,z)=zf(x,y)=0,{\displaystyle F(x,y,z)=z-f(x,y)=0,} givingn=F(x,y,z)=(fx,fy,1).{\displaystyle \mathbf {n} =\nabla F(x,y,z)=\left(-{\tfrac {\partial f}{\partial x}},-{\tfrac {\partial f}{\partial y}},1\right).} Since a surface does not have a tangent plane at asingular point, it has no well-defined normal at that point: for example, the vertex of acone. In general, it is possible to define a normal almost everywhere for a surface that isLipschitz continuous.

Orientation

[edit]
A vector field of normals to a surface

The normal to a (hyper)surface is usually scaled to haveunit length, but it does not have a unique direction, since its opposite is also a unit normal. For a surface which is thetopological boundary of a set in three dimensions, one can distinguish between twonormal orientations, theinward-pointing normal andouter-pointing normal. For anoriented surface, the normal is usually determined by theright-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 apseudovector.

Transforming normals

[edit]
in this section we only use the upper3×3{\displaystyle 3\times 3} matrix, as translation is irrelevant to the calculation

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 matrixM,{\displaystyle \mathbf {M} ,} we can determine the matrixW{\displaystyle \mathbf {W} } that transforms a vectorn{\displaystyle \mathbf {n} } perpendicular to the tangent planet{\displaystyle \mathbf {t} } into a vectorn{\displaystyle \mathbf {n} ^{\prime }} perpendicular to the transformed tangent planeMt,{\displaystyle \mathbf {Mt} ,} by the following logic:

Writen′ asWn.{\displaystyle \mathbf {Wn} .} We must findW.{\displaystyle \mathbf {W} .}Wn is perpendicular to Mt if and only if 0=(Wn)(Mt) if and only if 0=(Wn)T(Mt) if and only if 0=(nTWT)(Mt) if and only if 0=nT(WTM)t{\displaystyle {\begin{alignedat}{5}W\mathbb {n} {\text{ is perpendicular to }}M\mathbb {t} \quad \,&{\text{ if and only if }}\quad 0=(W\mathbb {n} )\cdot (M\mathbb {t} )\\&{\text{ if and only if }}\quad 0=(W\mathbb {n} )^{\mathrm {T} }(M\mathbb {t} )\\&{\text{ if and only if }}\quad 0=\left(\mathbb {n} ^{\mathrm {T} }W^{\mathrm {T} }\right)(M\mathbb {t} )\\&{\text{ if and only if }}\quad 0=\mathbb {n} ^{\mathrm {T} }\left(W^{\mathrm {T} }M\right)\mathbb {t} \\\end{alignedat}}}

ChoosingW{\displaystyle \mathbf {W} } such thatWTM=I,{\displaystyle W^{\mathrm {T} }M=I,} orW=(M1)T,{\displaystyle W=(M^{-1})^{\mathrm {T} },} will satisfy the above equation, giving aWn{\displaystyle W\mathbb {n} } perpendicular toMt,{\displaystyle M\mathbb {t} ,} or ann{\displaystyle \mathbf {n} ^{\prime }} perpendicular tot,{\displaystyle \mathbf {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 inn-dimensional space

[edit]

For an(n1){\displaystyle (n-1)}-dimensionalhyperplane inn{\displaystyle n}-dimensional spaceRn{\displaystyle \mathbb {R} ^{n}} given by its parametric representationr(t1,,tn1)=p0+t1v1++tn1vn1,{\displaystyle \mathbf {r} \left(t_{1},\ldots ,t_{n-1}\right)=\mathbf {p} _{0}+t_{1}\mathbf {v} _{1}+\cdots +t_{n-1}\mathbf {v} _{n-1},}wherep0{\displaystyle \mathbf {p} _{0}} is a point on the hyperplane andvi{\displaystyle \mathbf {v} _{i}} fori=1,,n1{\displaystyle i=1,\ldots ,n-1} are linearly independent vectors pointing along the hyperplane, a normal to the hyperplane is any vectorn{\displaystyle \mathbf {n} } in thenull space of the matrixV=[v1vn1],{\displaystyle V={\begin{bmatrix}\mathbf {v} _{1}&\cdots &\mathbf {v} _{n-1}\end{bmatrix}},} meaningVn=0{\displaystyle V\mathbf {n} =\mathbf {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 equationa1x1++anxn=c{\displaystyle a_{1}x_{1}+\cdots +a_{n}x_{n}=c}, then the vectorn=(a1,,an){\displaystyle \mathbf {n} =\left(a_{1},\ldots ,a_{n}\right)} is a normal.

The definition of a normal to a surface in three-dimensional space can be extended to(n1){\displaystyle (n-1)}-dimensionalhypersurfaces inRn{\displaystyle \mathbb {R} ^{n}}. A hypersurface may belocally defined implicitly as the set of points(x1,x2,,xn){\displaystyle (x_{1},x_{2},\ldots ,x_{n})} satisfying an equationF(x1,x2,,xn)=0{\displaystyle F(x_{1},x_{2},\ldots ,x_{n})=0}, whereF{\displaystyle F} is a givenscalar function. IfF{\displaystyle F} iscontinuously differentiable then the hypersurface is adifferentiable manifold in theneighbourhood of the points where thegradient is not zero. At these points a normal vector is given by the gradient:n=F(x1,x2,,xn)=(Fx1,Fx2,,Fxn).{\displaystyle \mathbb {n} =\nabla F\left(x_{1},x_{2},\ldots ,x_{n}\right)=\left({\tfrac {\partial F}{\partial x_{1}}},{\tfrac {\partial F}{\partial x_{2}}},\ldots ,{\tfrac {\partial F}{\partial x_{n}}}\right)\,.}

Thenormal line is the one-dimensional subspace with basis{n}.{\displaystyle \{\mathbf {n} \}.}

A vector that is normal to the space spanned by the linearly independent vectorsv1, ...,vr−1 and falls within ther-dimensional space spanned by the linearly independent vectorsv1, ...,vr is given by ther-th column of the matrixΛ =V(VTV)−1, where the matrixV = (v1, ...,vr) is the juxtaposition of ther column vectors. (Proof:Λ isV times a matrix so each column ofΛ is a linear combination of the columns ofV. Furthermore,VTΛ =I, so each column ofV other than the last is perpendicular to the last column ofΛ.) This formula works even whenr is less than the dimension of the Euclideanspacen. The formula simplifies toΛ = (VT)−1 whenr =n.

Varieties defined by implicit equations inn-dimensional space

[edit]

Adifferential variety defined by implicit equations in then{\displaystyle n}-dimensional spaceRn{\displaystyle \mathbb {R} ^{n}} is the set of the common zeros of a finite set of differentiable functions inn{\displaystyle n} variablesf1(x1,,xn),,fk(x1,,xn).{\displaystyle f_{1}\left(x_{1},\ldots ,x_{n}\right),\ldots ,f_{k}\left(x_{1},\ldots ,x_{n}\right).}TheJacobian matrix of the variety is thek×n{\displaystyle k\times n} matrix whosei{\displaystyle i}-th row is the gradient offi.{\displaystyle f_{i}.} By theimplicit function theorem, the variety is amanifold in the neighborhood of a point where the Jacobian matrix has rankk.{\displaystyle k.} At such a pointP,{\displaystyle P,} thenormal vector space is the vector space generated by the values atP{\displaystyle P} of the gradient vectors of thefi.{\displaystyle f_{i}.}

In other words, a variety is defined as the intersection ofk{\displaystyle 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.

Thenormal (affine) space at a pointP{\displaystyle P} of the variety is theaffine subspace passing throughP{\displaystyle P} and generated by the normal vector space atP.{\displaystyle P.}

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

Example

[edit]

LetV be the variety defined in the 3-dimensional space by the equationsxy=0,z=0.{\displaystyle x\,y=0,\quad z=0.}This variety is the union of thex{\displaystyle x}-axis and they{\displaystyle y}-axis.

At a point(a,0,0),{\displaystyle (a,0,0),} wherea0,{\displaystyle a\neq 0,} the rows of the Jacobian matrix are(0,0,1){\displaystyle (0,0,1)} and(0,a,0).{\displaystyle (0,a,0).} Thus the normal affine space is the plane of equationx=a.{\displaystyle x=a.} Similarly, ifb0,{\displaystyle b\neq 0,} thenormal plane at(0,b,0){\displaystyle (0,b,0)} is the plane of equationy=b.{\displaystyle y=b.}

At the point(0,0,0){\displaystyle (0,0,0)} the rows of the Jacobian matrix are(0,0,1){\displaystyle (0,0,1)} and(0,0,0).{\displaystyle (0,0,0).} Thus the normal vector space and the normal affine space have dimension 1 and the normal affine space is thez{\displaystyle z}-axis.

Uses

[edit]

Normal in geometric optics

[edit]
Main article:Specular reflection
Diagram of specular reflection

Thenormal ray is the outward-pointing rayperpendicular to the surface of anoptical medium at a given point.[2] Inreflection of light, theangle of incidence and theangle of reflection are respectively the angle between the normal and theincident ray (on theplane of incidence) and the angle between the normal and thereflected ray.

See also

[edit]

References

[edit]
  1. ^Ying Wu."Radiometry, BRDF and Photometric Stereo"(PDF). Northwestern University.
  2. ^"The Law of Reflection".The Physics Classroom Tutorial.Archived from the original on April 27, 2009. Retrieved2008-03-31.

External links

[edit]
Authority control databasesEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Normal_(geometry)&oldid=1313206382"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp