Show / Hide Table of Contents

    Method w3d

    | Improve this Doc View Source

    w3d(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)

    plw3d: Configure the transformations required for projecting a 3D surface on a 2D window

    Declaration
    public void w3d(Double basex, Double basey, Double height, Double xmin, Double xmax, Double ymin, Double ymax, Double zmin, Double zmax, Double alt, Double az)
    Parameters
    Type Name Description
    Double basex

    The normalized x coordinate size of the rectangular cuboid.

    Double basey

    The normalized y coordinate size of the rectangular cuboid.

    Double height

    The normalized z coordinate size of the rectangular cuboid.

    Double xmin

    The minimum x world coordinate of the rectangular cuboid.

    Double xmax

    The maximum x world coordinate of the rectangular cuboid.

    Double ymin

    The minimum y world coordinate of the rectangular cuboid.

    Double ymax

    The maximum y world coordinate of the rectangular cuboid.

    Double zmin

    The minimum z world coordinate of the rectangular cuboid.

    Double zmax

    The maximum z world coordinate of the rectangular cuboid.

    Double alt

    The viewing altitude in degrees above the xy plane of the rectangular cuboid in normalized coordinates.

    Double az

    The viewing azimuth in degrees of the rectangular cuboid in normalized coordinates. When az=0, the observer is looking face onto the zx plane of the rectangular cuboid in normalized coordinates, and as az is increased, the observer moves clockwise around that cuboid when viewed from above the xy plane.

    Remarks

    Configure the transformations required for projecting a 3D surface on an existing 2D window. Those transformations (see ) are done to a rectangular cuboid enclosing the 3D surface which has its limits expressed in 3D world coordinates and also normalized 3D coordinates (used for interpreting the altitude and azimuth of the viewing angle). The transformations consist of the linear transform from 3D world coordinates to normalized 3D coordinates, and the 3D rotation of normalized coordinates required to align the pole of the new 3D coordinate system with the viewing direction specified by altitude and azimuth so that x and y of the surface elements in that transformed coordinate system are the projection of the 3D surface with given viewing direction on the 2D window.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX