backend.spheremodel
Interface CircleIntersection

All Known Implementing Classes:
SphereCircleModel, SphereGreatCircleModel, SphereLineModel, SphereLongLineModel, SphereParaLineModel, SphereShortLineModel

public interface CircleIntersection

CircleIntersection interface is for classes that need to intersect with a circle. I am not currently sure if it can be used universally or not, but with the current setup it helps to reuse code. It is doubt too many need features will need to even intersect with a spherical circle so it is a bit of a moot point


Method Summary
 Line3f getLineFromCirc(javax.vecmath.Vector3f rotationAxis)
          getLineFromCirc this function should create a line which lies on the plane formed by the object implementing this class and it should use this axis of rotation to create the line by rotating the center point of the circle.
 javax.vecmath.Vector3f getNormalVecToPlane()
          getNormalVecToPlane() should return a normal vector to the plane created by whatever class implements this interface.
 

Method Detail

getNormalVecToPlane

javax.vecmath.Vector3f getNormalVecToPlane()
getNormalVecToPlane() should return a normal vector to the plane created by whatever class implements this interface. WARNING: The vector may or may not be normalized in the sense that its magnitude is one.

Returns:
a vector3f which is a normal vector to this plane. Please note that which this vector will be perpendicular to the plane it may or may not be normalized

getLineFromCirc

Line3f getLineFromCirc(javax.vecmath.Vector3f rotationAxis)
getLineFromCirc this function should create a line which lies on the plane formed by the object implementing this class and it should use this axis of rotation to create the line by rotating the center point of the circle.

Parameters:
rotationAxis - is the axis of rotation to use for rotating the all important center point
Returns:
A line which lies on the plane created by the circle implementing this interface and using the axis of rotation passed in to this function.