GeoSoft API

no.geosoft.cc.graphics
Class GWorldExtent

Object
  extended byGWorldExtent

public class GWorldExtent
extends Object

This class represent a client 3D plane world extent. The world extent is defined by three points as follows:

        w2 o 
           |
           |
           |
        w0 o-------o w1
 
Each point is a 3D coordinate [x,y,z]. A typical world extent will have w0[y] == w1[y], w0[x] == w2[x] and all z coordinates == 0, but the definition makes it possible to use any planar suerface in 3D space as world extent.

Clients sets world extent on a scene through the GScene.setWorldExtent() methods.

Author:
GeoSoft
See Also:
(double[], double[], double[])., (double, double, double, double).

Method Summary
 double[] get(int index)
          Return world extent coordinate of specified index.
 double getHeight()
          Return height of this world extent.
 double getWidth()
          Return width of this world extent.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public double[] get(int index)
Return world extent coordinate of specified index.

Parameters:
index - index of coordinate to get.
Returns:
Coordinate of point at index [x,y,z].

getWidth

public double getWidth()
Return width of this world extent.

Returns:
Width of this world extent.

getHeight

public double getHeight()
Return height of this world extent.

Returns:
Height of this world extent.

GeoSoft API

Copyright © 2004 - Geotechnical Software Services     geosoft.no