コード例 #1
0
def equateCylindrical(point, returnValue):
    "Get equation for cylindrical."
    point = evaluate.getVector3ByFloatList(returnValue, point)
    azimuthComplex = euclidean.getWiddershinsUnitPolar(math.radians(
        point.y)) * point.x
    point.x = azimuthComplex.real
    point.y = azimuthComplex.imag
コード例 #2
0
def equateSpherical( point, returnValue ):
	"Get equation for spherical."
	spherical = evaluate.getVector3ByFloatList( returnValue, point )
	radius = spherical.x
	elevationComplex = euclidean.getWiddershinsUnitPolar( math.radians( spherical.z ) ) * radius
	azimuthComplex = euclidean.getWiddershinsUnitPolar( math.radians( spherical.y ) ) * elevationComplex.real
	point.x = azimuthComplex.real
	point.y = azimuthComplex.imag
	point.z = elevationComplex.imag
コード例 #3
0
ファイル: equation.py プロジェクト: koenkooi/ReplicatorG
def equateSpherical(point, returnValue):
    "Get equation for spherical."
    spherical = evaluate.getVector3ByFloatList(returnValue, point)
    radius = spherical.x
    elevationComplex = euclidean.getWiddershinsUnitPolar(math.radians(spherical.z)) * radius
    azimuthComplex = euclidean.getWiddershinsUnitPolar(math.radians(spherical.y)) * elevationComplex.real
    point.x = azimuthComplex.real
    point.y = azimuthComplex.imag
    point.z = elevationComplex.imag
コード例 #4
0
ファイル: equation.py プロジェクト: koenkooi/ReplicatorG
def equateCylindrical(point, returnValue):
    "Get equation for cylindrical."
    point = evaluate.getVector3ByFloatList(returnValue, point)
    azimuthComplex = euclidean.getWiddershinsUnitPolar(math.radians(point.y)) * point.x
    point.x = azimuthComplex.real
    point.y = azimuthComplex.imag