manimgeo.math.vectors module

manimgeo.math.vectors.unit_direction_vector(start, end)[源代码]

计算单位方向向量

Returns: np.ndarray, 单位方向向量

返回类型:

ndarray

manimgeo.math.vectors.get_two_vector_from_normal(normal)[源代码]

从法向量生成两个正交向量,三个向量互相正交且生成向量长度为 1

向量选取的方向将尽可能保证数值稳定,v1, v2, normal 构成右手系

返回类型:

Tuple[ndarray, ndarray]