org.opensourcephysics.display3d.core
Interface ElementPlane

All Superinterfaces:
Element, org.opensourcephysics.display3d.core.interaction.InteractionSource
All Known Implementing Classes:
ElementPlane

public interface ElementPlane
extends Element

Title: ElementSurface

Description: A 3D plane.

The plane is specified by (its position, size, and) its direction vectors


Nested Class Summary
static class ElementPlane.ElementPlaneLoader
           
 
Nested classes inherited from class org.opensourcephysics.display3d.core.Element
Element.Loader
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Method Summary
 double[] getFirstDirection()
          Gets the first direction vector of th eplane
 double[] getSecondDirection()
          Gets the second direction vector of th eplane
 void setFirstDirection(double[] vector)
          Sets the first direction vector of th eplane
 void setSecondDirection(double[] vector)
          Sets the second direction vector of th eplane
 
Methods inherited from interface org.opensourcephysics.display3d.core.Element
getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
 
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource
addInteractionListener, getInteractionTarget, removeInteractionListener
 

Method Detail

setFirstDirection

public void setFirstDirection(double[] vector)
Sets the first direction vector of th eplane


getFirstDirection

public double[] getFirstDirection()
Gets the first direction vector of th eplane

Returns:
the double[3] array for the first vector

setSecondDirection

public void setSecondDirection(double[] vector)
Sets the second direction vector of th eplane


getSecondDirection

public double[] getSecondDirection()
Gets the second direction vector of th eplane

Returns:
the double[3] array for the first vector