package geoml

  1. Overview
  2. Docs

Module EllipseSource

Ellipses manipulation

Sourcetype t = private {
  1. f1 : Point.t;
  2. f2 : Point.t;
  3. radius : float;
  4. big_axis : float;
  5. small_axis : float;
}
Sourceval make_bifocal : Point.t -> Point.t -> float -> t
Sourceval focal1 : t -> Point.t
Sourceval focal2 : t -> Point.t
Sourceval center : t -> Point.t
Sourceval radius : t -> float
Sourceval big_axis : t -> float
Sourceval small_axis : t -> float
Sourceval rotate : t -> Point.t -> float -> t

radian rotation. rotate e p f returns the rotated ellipse with p as the rotation center and f a angle in radian

Sourceval rotate_angle : t -> Point.t -> float -> t

degree rotation. rotate e p f returns the rotated ellipse with p as the rotation center and f a angle in degree

Sourceval translate : float -> float -> t -> t
Sourceval scale_x : t -> float -> t
Sourceval scale_y : t -> float -> t
Sourceval contains : t -> Point.t -> bool
Sourceval area : t -> float
OCaml

Innovation. Community. Security.