Python: Kann mir jemand beim Programmieren helfen?

Hallo erstmal. Ich bin Anfänger und bräuchte eure Hilfe.

Ich soll mit Raycasting etwas in Python implementieren.

Das ist die Aufgabe:

import math

class Canvas():
  def __init__(self, width, height, background = " "):
    """Initialisation method for the Canvas class"""
    pass

  def render(self):
    """
    Rendering method for the raytracer. Renders all objects attached to the canvas.
    Everything is drawn using raycasting. The canvas is positioned at (0.0, 0.0, -1.0) and has the endpoints(-1.0, -1.0, -1.0), (-1.0, 1.0, -1.0), (1.0, 1.0, -1.0), (1.0, -1.0, -1.0).
    The camera is positioned at (0.0, 0.0 , -10.0).
    Rays are send from the camera to the sampling points on the canvas.
    You do not need to implement clipping, backface culling or similar methods.
    Make sure to send one ray per entry in the canvas.
    In addition make sure that only the nearest collision is drawn per ray, i.e. implement z-occlusion.
    The color returned by a given ray is the color of the nearest collison's hit object.
    When no attached object is hit, the color returned for that ray is the background of the canvas.
    Returns the content of the canvas as a string and does *not* print it.
    """
    pass

class Sphere():
  def __init__(self, origin, radius, color):
    """
    Initialisation method for Sphere class
    Expects the origin as an arrays in the form of [x, y, z].
    Radius is the radius of the sphere.
    Color is the color the triangle is drawn in.
    """
    pass

class Triangle():
  def __init__(self, a, b, c, color):
    """
    Initialisation method for the Triangle class
    Expects points as arrays in the form of [x, y, z]. Color is the color the triangle is drawn in.
    """
    pass
Computer, Programm, Programmieren, Programmierung, Informatik, Python
2 Antworten
Armitage wird nicht Ausgeführt?(Linux,Metasploit)?

Hey,Ich habe mir Metasploit herruntergeladen (Ich habe xubuntu 16.04) und kenn mich da schon aus.Ich würde es für mich gerne einfacher haben undzwar mit Armitage.Nur ist leider mein problem:es öffnet sich nicht. Java erkennt Illegeales(meine Vermutung) Wie kann ich diese Fehlermeldung umgehen? muss ich mir Wirklich VM installieren?

LG Kian

cd armitage

uwu@uwu-P5K-SE:~/Schreibtisch/armitage$ ls

armitage   armitage-logo.png readme.txt whatsnew.txt

armitage.jar cortana.jar    teamserver

uwu@uwu-P5K-SE:~/Schreibtisch/armitage$ ./armitage

[*] Starting msfrpcd for you.

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by sleep.engine.atoms.ObjectAccess (file:/home/uwu/Schreibtisch/armitage/armitage.jar) to method java.lang.ProcessImpl.getErrorStream()

WARNING: Please consider reporting this to the maintainers of sleep.engine.atoms.ObjectAccess

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

###!!! [Parent][RunMessage] Error: Channel error: cannot send/recv

###!!! [Parent][RunMessage] Error: Channel error: cannot send/recv

###!!! [Parent][RunMessage] Error: Channel error: cannot send/recv

###!!! [Parent][RunMessage] Error: Channel error: cannot send/recv

PC, Computer, Technik, hacken, Programmieren, Linux Ubuntu, ubuntu 16.04
1 Antwort

Meistgelesene Fragen zum Thema Computer