GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi::PointApi Class Reference

#include <GameApi.hh>

Public Member Functions

IMPORT PointApi (Env &e)
IMPORT PT origo ()
IMPORT PT point (float x, float y, float z=0.0)
IMPORT PT move (PT p1, float dx, float dy, float dz=0.0)
IMPORT PT move (PT p1, V vec)
IMPORT PT mix (PT p1, PT p2, float val)
IMPORT PT from_angle (float radius, float angle)
IMPORT PT from_angle (PT center, float radius, float angle)
IMPORT PT spherical_coords (PT pos)
IMPORT PT cartesian_coords (PT pos)
IMPORT float pt_x (PT p)
IMPORT float pt_y (PT p)
IMPORT float pt_z (PT p)
IMPORT float dist3d (PT p, PT p2)
IMPORT float dist2d (PT p, PT p2)
IMPORT V minus (PT p1, PT p2)

Constructor & Destructor Documentation

◆ PointApi()

EXPORT GameApi::PointApi::PointApi ( Env & e)

Member Function Documentation

◆ cartesian_coords()

EXPORT GameApi::PT GameApi::PointApi::cartesian_coords ( PT pos)

◆ dist2d()

EXPORT float GameApi::PointApi::dist2d ( PT p,
PT p2 )

◆ dist3d()

EXPORT float GameApi::PointApi::dist3d ( PT p,
PT p2 )

◆ from_angle() [1/2]

EXPORT GameApi::PT GameApi::PointApi::from_angle ( float radius,
float angle )

◆ from_angle() [2/2]

EXPORT GameApi::PT GameApi::PointApi::from_angle ( PT center,
float radius,
float angle )

◆ minus()

EXPORT GameApi::V GameApi::PointApi::minus ( PT p1,
PT p2 )

◆ mix()

EXPORT GameApi::PT GameApi::PointApi::mix ( PT p1,
PT p2,
float val )
Here is the caller graph for this function:

◆ move() [1/2]

EXPORT GameApi::PT GameApi::PointApi::move ( PT p1,
float dx,
float dy,
float dz = 0.0 )
Here is the caller graph for this function:

◆ move() [2/2]

EXPORT GameApi::PT GameApi::PointApi::move ( PT p1,
V vec )

◆ origo()

EXPORT GameApi::PT GameApi::PointApi::origo ( )

◆ point()

EXPORT GameApi::PT GameApi::PointApi::point ( float x,
float y,
float z = 0.0 )
Here is the caller graph for this function:

◆ pt_x()

EXPORT float GameApi::PointApi::pt_x ( PT p)

◆ pt_y()

EXPORT float GameApi::PointApi::pt_y ( PT p)

◆ pt_z()

EXPORT float GameApi::PointApi::pt_z ( PT p)

◆ spherical_coords()

EXPORT GameApi::PT GameApi::PointApi::spherical_coords ( PT pos)

The documentation for this class was generated from the following files: