Reference ‐ RTPlane - 62firelight/manimRT-490 GitHub Wiki

module RTPlane


class RTPlane

A plane with transformations that are applied and tracked.

Args:

  • translation: The translation transformation to apply to the plane.
  • x_scale: The scale of the plane along the X axis.
  • y_scale: The scale of the plane along the Y axis.
  • z_scale: The scale of the plane along the Z axis.
  • x_rotation: The rotation of the plane along the X axis.
  • y_rotation: The rotation of the plane along the Y axis.
  • z_rotation: The rotation of the plane along the Z axis.
  • refractive_index: The refractive index of the plane.
  • color: The color of the plane.
  • opacity: The opacity of the plane.

method __init__

__init__(
    translation: Sequence[float] = [0, 0, 0],
    x_scale: float = 1,
    y_scale: float = 1,
    z_scale: float = 1,
    x_rotation: float = 0,
    y_rotation: float = 0,
    z_rotation: float = 0,
    refractive_index: float = 1,
    color=ManimColor('#FFFFFF'),
    opacity=1,
    **kwargs
)

method get_intersection

get_intersection(ray: Ray3D)

Calculates the intersection point(s) between this plane and a given ray.

Args:

  • ray: A Ray3D Mobject to calculate intersection point(s) with.

Returns: An array containing the intersection point(s) with the given ray. The array is empty if there are no intersection points.


This file was automatically generated via lazydocs.

⚠️ **GitHub.com Fallback** ⚠️