Class OBBViewportTransform

java.lang.Object
org.jbox2d.common.OBBViewportTransform
All Implemented Interfaces:
IViewportTransform

public class OBBViewportTransform extends java.lang.Object implements IViewportTransform
Orientated bounding box viewport transform
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final OBBViewportTransform.OBB
     
    private final Mat22
     
    private final Mat22
     
    private boolean
     
    private final Mat22
     
    private final Mat22
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    center of the viewport.
    This is the half-width and half-height.
    void
    getScreenToWorld(Vec2 argScreen, Vec2 argWorld)
    takes the screen coordinates (argScreen) and puts the corresponding world coordinates in argWorld.
    void
    getScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld)
    Transforms the given directional screen vector back to the world direction.
    gets the transform of the viewport, transforms around the center.
    void
    getWorldToScreen(Vec2 argWorld, Vec2 argScreen)
    takes the world coordinate (argWorld) puts the corresponding screen coordinate in argScreen.
    void
    getWorldVectorToScreen(Vec2 argWorld, Vec2 argScreen)
    Transforms the given directional vector by the viewport transform (not positional)
    boolean
     
    void
    mulByTransform(Mat22 argTransform)
    Multiplies the obb transform by the given transform
    void
     
    void
    setCamera(float x, float y, float scale)
    Sets the transform's center to the given x and y coordinates, and using the given scale.
    void
    setCenter(float x, float y)
    sets the center of the viewport.
    void
    setCenter(Vec2 argPos)
    sets the center of the viewport.
    void
    setExtents(float argHalfWidth, float argHalfHeight)
    This sets the half-width and half-height of the viewport.
    void
    setExtents(Vec2 argExtents)
    This sets the half-width and half-height.
    void
    setTransform(Mat22 transform)
    Sets the transform of the viewport.
    void
    setYFlip(boolean yFlip)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait