VisimBox 1.0 VisimBox 3d simulation and visualisation ToolBox

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
VisiMath.Collisions.QuadSpatialDivider Class Reference

Uses Quad (must be planar!) as a portal Note, really usable only for movethrough check! More...

Inheritance diagram for VisiMath.Collisions.QuadSpatialDivider:

List of all members.

## Public Member Functions
| QuadSpatialDivider (Vector3 pos1, Vector3 pos2, Vector3 pos3, Vector3 pos4)
| Creates planar divider from three points on the plane.
override bool | MovedThrough (ref ISpatialIndex startpos, ref ISpatialIndex endpos)
| Returns true, if object moving from one position to another moved through the portal. Note: Currently converts spatial indices to spheres to see if intersection with quad occured.

## Detailed Description

Uses Quad (must be planar!) as a portal Note, really usable only for movethrough check!

## Constructor & Destructor Documentation

VisiMath.Collisions.QuadSpatialDivider.QuadSpatialDivider | ( | Vector3 | pos1,
|  | Vector3 | pos2,
|  | Vector3 | pos3,
|  | Vector3 | pos4
| ) |  |

Creates planar divider from three points on the plane.

Parameters:

  pos1 | Pos1
  pos2 | Pos2
  pos3 | Pos3

## Member Function Documentation

override bool VisiMath.Collisions.QuadSpatialDivider.MovedThrough | ( | ref ISpatialIndex | startpos,
|  | ref ISpatialIndex | endpos
| ) |  | `[virtual]`

Returns true, if object moving from one position to another moved through the portal. Note: Currently converts spatial indices to spheres to see if intersection with quad occured.

Parameters:

  startpos | Starting position
  endpos | Ending position

Returns:
  True if object moved

Reimplemented from VisiMath.Collisions.BaseSpatialDivider.

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

- SpatialDivider.cs

All Classes Namespaces Files Functions Variables Enumerations Properties Events