# Class RayCastOutput

java.lang.Object
com.codename1.gaming.physics.box2d.collision.RayCastOutput

public class RayCastOutput extends Object
Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from b2RayCastInput.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `float`
  `fraction`
  `final Vec2`
  `normal`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RayCastOutput()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `set(RayCastOutput rco)`

  ### Methods inherited from class Object

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

- ## Field Details

  - ### normal

    public final Vec2 normal

  - ### fraction

    public float fraction

- ## Constructor Details

  - ### RayCastOutput

    public RayCastOutput()

- ## Method Details

  - ### set

    public void set(RayCastOutput rco)