Package frc.lib.math

Class Line

java.lang.Object
frc.lib.math.Line
All Implemented Interfaces:
Drawable

public class Line extends Object implements Drawable
Represents a line in 2d space. Uses Ax + By + c = 0 representation.
  • Field Details

    • a

      public double a
    • b

      public double b
    • c

      public double c
    • name

      public String name
  • Constructor Details

    • Line

      public Line(String name, double a, double b, double c)
      Represents a line in 2d space. Uses Ax + By + c = 0 representation.
  • Method Details

    • drawImpl

      public void drawImpl()
      Description copied from interface: Drawable
      Draw to AdvantageScope unconditionally.
      Specified by:
      drawImpl in interface Drawable
    • intersection

      public Translation2d intersection(Line other)
      Get intersection of two lines. Returns null if lines are parallel.