anar

Class PtNormal

java.lang.Object
  extended by anar.Parametric
      extended by anar.Pt
          extended by anar.PtNormal
All Implemented Interfaces:
iArithmetic, iTaggable, iTransformable, XYZ

public class PtNormal
extends Pt

Pt myNormalizedNormal = PtNormal(ptA,ptB,ptC);
Pt myNormalizedNormal = PtNormal(ptA,ptB,ptC,size);
where ptA, ptB, ptC are the points defining a plane.
ptB is the center where the normal segment begin.
size is facultative, it's the size of the normal (the length)
if size is not provided, the size is 1 (normalized).
for the render you could use:
Face.globalRender = new RenderFaceNormal(new OogColor(155,100),new OogColor(100))


Field Summary
 
Fields inherited from class anar.Pt
globalRender, render
 
Fields inherited from class anar.Parametric
meta
 
Constructor Summary
PtNormal(Pt a, Pt b, Pt c)
          B is the center for the normal vector.
PtNormal(Pt a, Pt b, Pt c, float fsz)
           
PtNormal(Pt a, Pt b, Pt c, Param fsz)
           
PtNormal(Pts f)
           
PtNormal(Pts f, float fsz)
           
PtNormal(Pts f, Param fsz)
           
 
Method Summary
 void setFinalSize(float newSize)
           
 
Methods inherited from class anar.Pt
apply, bound, boundCenter, copy, create, create, create, create, create, create, create, create, create, create, create, create, createNull, createRnd, createRnd, createRnd, divide, divide, divide, divide, dot, dot, draw, equalsPt, equalsPt, fill, fill, fill, fill, fill, fill, fillP5, getTransform, isOver, isOver, length, length, length, lengthNoSq, lengthSq, lengthSq, minus, minus, minus, minus, minus, multiply, multiply, multiply, multiply, multiply, onScreen, orphaned, plus, plus, plus, plus, plus, plus, render, rotateX, rotateX, rotateY, rotateY, rotateZ, rotateZ, scale, scale, scale, scale, scale, scale, scale, scale, scaleX, scaleX, scaleY, scaleY, scaleZ, scaleZ, set, set, set, set, set, set, set, set, set, setMeta, tag, tag, toANSYS, toAutocad, toAutocadPart, toMegaPPOV, toObjExporter, toObjExporterAsObject, toPovRay, toPovRayAsObject, toRadiance, toRadianceAsObject, toRhino, toRhinoAsObject, toRhinoAsVar, toShortString, toSingleName, toSketchUp, toSketchUpAsPoint3D, toString, toStringComa, toStringComaPovRay, toStringTab, toStringTabRad, translate, translate, translate, translate, translate, translate, translateX, translateX, translateY, translateY, translateZ, translateZ, x, x, x, y, y, y, z, z, z
 
Methods inherited from class anar.Parametric
child, get, getMeta, getPrimitive, parent, parent, parentList, parentList, parentList, parentListGraphViz, parentListGraphViz, parentListRecursive, parentListRecursiveGraphViz, parentToString, parentToStringRecursive, parentToStringRecursive, primitiveToString, replaceParent, replaceParent, replicate, tag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PtNormal

public PtNormal(Pt a,
                Pt b,
                Pt c)
B is the center for the normal vector.

Parameters:
a -
b -
c -

PtNormal

public PtNormal(Pt a,
                Pt b,
                Pt c,
                Param fsz)

PtNormal

public PtNormal(Pt a,
                Pt b,
                Pt c,
                float fsz)

PtNormal

public PtNormal(Pts f)

PtNormal

public PtNormal(Pts f,
                Param fsz)

PtNormal

public PtNormal(Pts f,
                float fsz)
Method Detail

setFinalSize

public void setFinalSize(float newSize)