Class Sector3D
java.lang.Object
jaba.Sector3D
Created by IntelliJ IDEA.
User: Andrea Zanzottera
Date: 27-lug-2005
Time: 13.54.43
-
Constructor Summary
ConstructorsConstructorDescriptionSector3D()Sector3D(double b11, double b12, double b13, double b21, double b22, double b23, double b31, double b32, double b33, int thistype, Vertex vv1, Vertex vv2, Vertex vv3) Sector3D(double b11, double b12, double b13, double b21, double b22, double b23, double b31, double b32, double b33, int thistype, Vertex vv1, Vertex vv2, Vertex vv3, Vertex vv4) Sector3D(BetaVertex v1, BetaVertex v2, BetaVertex v3, BetaVertex v4, int thistype, Vertex vv1, Vertex vv2) Sector3D(Vector<BetaVertex> points, int thistype, Vertex vv1, Vertex vv2) Sector3D(Vector<BetaVertex> points, int thistype, Vector<Vertex> stations) -
Method Summary
Modifier and TypeMethodDescriptionAddVertex(BetaVertex betas, Vertex station) Adds a point in Beta space and its stationvoidaddxycoord(double[] coord) intAssoStation3D(Vector points, Vertex p) Given a vector of Vertex and a Vertex associate this last one to the initial stationsintintMethod CountStations.doublegetBeta(int vertex, int coord) double!!NOT USED!! Returns the "x","y" or "z" coordinate of the vertex vertex in Beta spacedouble[]getBetas(int vertex) Returns an array of doubles containing coordinates in zeta space of vertex vertexdouble[]Calculates central point of the polygon
Fixed by Bertoli MarcogetName()String[]getNames()getS()getS(int i) getS0()getS1()getS2()intgetType()Returns the type.getV(int i) getV0()getV1()getV2()doublegetx(int point) double[]getxycoord(int point) /////////////////// MANAGEMENT OF COORDINATES PROJECTED ON THE XY PLANE ////////////////////doublegety(int point) void//////////////////// STATION NAMES MANAGEMENT ////////////////////// //////////////booleanCheck if a Sector3D is a triangle where 3 contemp stations saturate.voidsetClassNames(String[] classNames) setType(int type) The method is to set the sector type.toString()
-
Constructor Details
-
Sector3D
public Sector3D() -
Sector3D
-
Sector3D
-
Sector3D
public Sector3D(BetaVertex v1, BetaVertex v2, BetaVertex v3, BetaVertex v4, int thistype, Vertex vv1, Vertex vv2) -
Sector3D
-
Sector3D
-
Sector3D
-
-
Method Details
-
setClassNames
-
getBeta
!!NOT USED!! Returns the "x","y" or "z" coordinate of the vertex vertex in Beta space- Parameters:
vertex-coord-- Returns:
- the "x","y" or "z" coordinate of the vertex vertex in Beta space
-
getBeta
public double getBeta(int vertex, int coord) -
getBetas
public double[] getBetas(int vertex) Returns an array of doubles containing coordinates in zeta space of vertex vertex- Parameters:
vertex-- Returns:
- an array of doubles containing coordinates in zeta space
-
getV0
-
getV1
-
getV2
-
getV
-
CountPoint
public int CountPoint() -
getS0
-
getS1
-
getS2
-
getS
-
getS
-
CountStations
public int CountStations()Method CountStations.- Returns:
- an int that corresponds to the number of stations associated with a sector
-
AddVertex
Adds a point in Beta space and its station- Parameters:
betas-station-- Returns:
- the updated sector
-
setType
The method is to set the sector type. 1=Saturates a single station 2=Saturate 2 stations 3=Saturate 3 stations etc- Parameters:
type-- Returns:
- the updated sector
-
getType
public int getType()Returns the type.- Returns:
- the type of Sector
-
IsTriangle
public boolean IsTriangle()Check if a Sector3D is a triangle where 3 contemp stations saturate.- Returns:
- TRUE if it's a triangle
-
AssoStation3D
-
getxycoord
public double[] getxycoord(int point) /////////////////// MANAGEMENT OF COORDINATES PROJECTED ON THE XY PLANE //////////////////// -
getx
public double getx(int point) -
gety
public double gety(int point) -
addxycoord
public void addxycoord(double[] coord) -
getCentre
public double[] getCentre()Calculates central point of the polygon
Fixed by Bertoli Marco- Returns:
- an array with x and y coordinates of center
-
givename
-
getName
-
getNames
-
toString
-