Atavism Version 2018.1AGIS API

atavism.server.pathing
Class PathIntersection

java.lang.Object
  extended by atavism.server.pathing.PathIntersection

public class PathIntersection
extends java.lang.Object

defines a planar polygon in 3D, used in pathing code works with java bean xml serialization


Field Summary
protected  PathPolygon cvPoly
           
protected  AOVector line1
           
protected  AOVector line2
           
protected  PathObject pathObject
           
protected  float where1
           
protected  float where2
           
 
Constructor Summary
PathIntersection(PathObject pathObject, float where1, float where2, AOVector line1, AOVector line2)
           
PathIntersection(PathObject pathObject, PathPolygon cvPoly, float where1, float where2, AOVector line1, AOVector line2)
           
 
Method Summary
static float distancePointLine(AOVector p, AOVector line1, AOVector line2)
           
static PathIntersection findIntersection(AOVector s1, AOVector e1, AOVector s2, AOVector e2)
           
static PathIntersection findIntersection(PathObject pathObject, float start1x, float start1z, float disp1x, float disp1z, float start2x, float start2z, float disp2x, float disp2z)
           
static PathIntersection findIntersection(PathObject pathObject, PathPolygon cvPoly, float start1x, float start1z, float disp1x, float disp1z, float start2x, float start2z, float disp2x, float disp2z)
           
 PathPolygon getCVPoly()
           
 float getIntersectorLength()
           
 AOVector getIntersectorPoint(float where)
           
static AOVector getLinePoint(float where, AOVector loc1, AOVector loc2)
           
 PathObject getPathObject()
           
 float getWhere1()
           
 float getWhere2()
           
 void setCVPoly(PathPolygon cvPoly)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pathObject

protected PathObject pathObject

cvPoly

protected PathPolygon cvPoly

where1

protected float where1

where2

protected float where2

line1

protected AOVector line1

line2

protected AOVector line2
Constructor Detail

PathIntersection

public PathIntersection(PathObject pathObject,
                        float where1,
                        float where2,
                        AOVector line1,
                        AOVector line2)

PathIntersection

public PathIntersection(PathObject pathObject,
                        PathPolygon cvPoly,
                        float where1,
                        float where2,
                        AOVector line1,
                        AOVector line2)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

findIntersection

public static PathIntersection findIntersection(AOVector s1,
                                                AOVector e1,
                                                AOVector s2,
                                                AOVector e2)

findIntersection

public static PathIntersection findIntersection(PathObject pathObject,
                                                float start1x,
                                                float start1z,
                                                float disp1x,
                                                float disp1z,
                                                float start2x,
                                                float start2z,
                                                float disp2x,
                                                float disp2z)

findIntersection

public static PathIntersection findIntersection(PathObject pathObject,
                                                PathPolygon cvPoly,
                                                float start1x,
                                                float start1z,
                                                float disp1x,
                                                float disp1z,
                                                float start2x,
                                                float start2z,
                                                float disp2x,
                                                float disp2z)

distancePointLine

public static float distancePointLine(AOVector p,
                                      AOVector line1,
                                      AOVector line2)

getPathObject

public PathObject getPathObject()

getCVPoly

public PathPolygon getCVPoly()

setCVPoly

public void setCVPoly(PathPolygon cvPoly)

getWhere1

public float getWhere1()

getWhere2

public float getWhere2()

getLinePoint

public static AOVector getLinePoint(float where,
                                    AOVector loc1,
                                    AOVector loc2)

getIntersectorPoint

public AOVector getIntersectorPoint(float where)

getIntersectorLength

public float getIntersectorLength()


Copyright © 2018 Dragonsan Studios Sp. z o.o.