|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfdubath.entrelacs.BackgroundGeometry
fdubath.entrelacs.tilling.TillingBackgroundGeometry
fdubath.entrelacs.tilling.TillingP3m1BackgroundGeometry
public class TillingP3m1BackgroundGeometry
This geometry has a fundamental zone which is an equilateral triangle. The three borders ((0,0)-(1,0)) ,((0,0)-(1/2,sqrt(3)/2)) and ((1,0)-(1/2,sqrt(3)/2)) are mirror border.
Field Summary |
---|
Fields inherited from class fdubath.entrelacs.tilling.TillingBackgroundGeometry |
---|
drawer |
Fields inherited from class fdubath.entrelacs.BackgroundGeometry |
---|
verbose |
Constructor Summary | |
---|---|
TillingP3m1BackgroundGeometry()
|
Method Summary | |
---|---|
void |
draw(int[] origine,
int[] clipSize,
double geometryUnit)
Call to this method cause the computation of the intersections and segments and the drawing of the ropes. |
java.lang.String |
geometryName()
Get the name of the Geometry, use for the CustomFileReader in order to ensure it can extract the content of a file and assigne it to the geometry. |
double[] |
getBorderTangentVector(Vertex vertex)
When a vertex is on a miror border, this methode allows to get the direction of the border at the vertex position. |
boolean |
hasIdentifiedBorder()
Define if the geometry has identified border - that is borders on which a Vertex has two image, causing the rope to jump from the first to the second image accross the geometry zone. |
boolean |
hasMirorBorder()
Define if the geometry has mirror border - that is border on which a Rope can end. |
boolean |
isInside(double[] position)
Compute if a given position is inside the geometry zone. |
double[] |
placeInside(double[] position)
If a given position is inside the geometry zone. |
double[] |
placeOnMirorBorder(double[] position)
Compute the closest position on a mirror border of the zone |
Methods inherited from class fdubath.entrelacs.tilling.TillingBackgroundGeometry |
---|
computeSegments |
Methods inherited from class fdubath.entrelacs.BackgroundGeometry |
---|
addLoopRope, addRopeOnMirorBorder, addVertex, addVertexToRope, deleteRope, deleteVertex, getIdentifiedBorderRotationAngle, getReadOnlyRopexList, getReadOnlyVertexList, getVertexImagePosition, moveVertex, numberOfVertexImages, placeOnIdentifiedBorder, removeVertexfromRope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TillingP3m1BackgroundGeometry()
Method Detail |
---|
public java.lang.String geometryName()
BackgroundGeometry
geometryName
in class BackgroundGeometry
CustomFileReader
public double[] getBorderTangentVector(Vertex vertex)
BackgroundGeometry
getBorderTangentVector
in class BackgroundGeometry
vertex
- the Vertex determining a position on a miror border
public boolean hasMirorBorder()
BackgroundGeometry
hasMirorBorder
in class BackgroundGeometry
public boolean hasIdentifiedBorder()
BackgroundGeometry
hasIdentifiedBorder
in class BackgroundGeometry
public boolean isInside(double[] position)
BackgroundGeometry
isInside
in class BackgroundGeometry
public double[] placeInside(double[] position)
BackgroundGeometry
placeInside
in class BackgroundGeometry
public double[] placeOnMirorBorder(double[] position)
BackgroundGeometry
placeOnMirorBorder
in class BackgroundGeometry
public void draw(int[] origine, int[] clipSize, double geometryUnit)
TillingBackgroundGeometry
draw
in class TillingBackgroundGeometry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |