PHP 클래스 pocketmine\math\Vector3

If this class is modified, remember to modify the PHP C extension.
파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$x
$y
$z

공개 메소드들

메소드 설명
__construct ( $x, $y, $z )
__toString ( )
abs ( )
add ( Vector3 | integer $x, integer $y, integer $z ) : Vector3
ceil ( )
createRandomDirection ( Random $random )
cross ( Vector3 $v )
distance ( Vector3 $pos )
distanceSquared ( Vector3 $pos )
divide ( $number )
dot ( Vector3 $v )
equals ( Vector3 $v )
floor ( )
fromObjectAdd ( Vector3 $pos, $x, $y, $z )
getFloorX ( )
getFloorY ( )
getFloorZ ( )
getForward ( )
getIntermediateWithXValue ( Vector3 $v, float $x ) : Vector3 Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
getIntermediateWithYValue ( Vector3 $v, float $y ) : Vector3 Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
getIntermediateWithZValue ( Vector3 $v, float $z ) : Vector3 Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
getOppositeSide ( $side )
getRight ( )
getSide ( $side, $step = 1 )
getSouth ( )
getUp ( )
getWest ( )
getX ( )
getY ( )
getZ ( )
length ( )
lengthSquared ( )
maxPlainDistance ( $x, $z )
multiply ( $number )
normalize ( ) : Vector3
round ( )
setComponents ( $x, $y, $z ) : Vector3
subtract ( Vector3 | integer $x, integer $y, integer $z ) : Vector3

메소드 상세

__construct() 공개 메소드

public __construct ( $x, $y, $z )

__toString() 공개 메소드

public __toString ( )

abs() 공개 메소드

public abs ( )

add() 공개 메소드

public add ( Vector3 | integer $x, integer $y, integer $z ) : Vector3
$x Vector3 | integer
$y integer
$z integer
리턴 Vector3

ceil() 공개 메소드

public ceil ( )

createRandomDirection() 공개 정적인 메소드

public static createRandomDirection ( Random $random )
$random pocketmine\utils\Random

cross() 공개 메소드

public cross ( Vector3 $v )
$v Vector3

distance() 공개 메소드

public distance ( Vector3 $pos )
$pos Vector3

distanceSquared() 공개 메소드

public distanceSquared ( Vector3 $pos )
$pos Vector3

divide() 공개 메소드

public divide ( $number )

dot() 공개 메소드

public dot ( Vector3 $v )
$v Vector3

equals() 공개 메소드

public equals ( Vector3 $v )
$v Vector3

floor() 공개 메소드

public floor ( )

fromObjectAdd() 공개 메소드

public fromObjectAdd ( Vector3 $pos, $x, $y, $z )
$pos Vector3
$x
$y
$z

getFloorX() 공개 메소드

public getFloorX ( )

getFloorY() 공개 메소드

public getFloorY ( )

getFloorZ() 공개 메소드

public getFloorZ ( )

getForward() 공개 메소드

public getForward ( )

getIntermediateWithXValue() 공개 메소드

Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
public getIntermediateWithXValue ( Vector3 $v, float $x ) : Vector3
$v Vector3
$x float
리턴 Vector3

getIntermediateWithYValue() 공개 메소드

Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
public getIntermediateWithYValue ( Vector3 $v, float $y ) : Vector3
$v Vector3
$y float
리턴 Vector3

getIntermediateWithZValue() 공개 메소드

Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
public getIntermediateWithZValue ( Vector3 $v, float $z ) : Vector3
$v Vector3
$z float
리턴 Vector3

getOppositeSide() 공개 정적인 메소드

public static getOppositeSide ( $side )

getRight() 공개 메소드

public getRight ( )

getSide() 공개 메소드

public getSide ( $side, $step = 1 )

getSouth() 공개 메소드

public getSouth ( )

getUp() 공개 메소드

public getUp ( )

getWest() 공개 메소드

public getWest ( )

getX() 공개 메소드

public getX ( )

getY() 공개 메소드

public getY ( )

getZ() 공개 메소드

public getZ ( )

length() 공개 메소드

public length ( )

lengthSquared() 공개 메소드

public lengthSquared ( )

maxPlainDistance() 공개 메소드

public maxPlainDistance ( $x, $z )

multiply() 공개 메소드

public multiply ( $number )

normalize() 공개 메소드

public normalize ( ) : Vector3
리턴 Vector3

round() 공개 메소드

public round ( )

setComponents() 공개 메소드

public setComponents ( $x, $y, $z ) : Vector3
$x
$y
$z
리턴 Vector3

subtract() 공개 메소드

public subtract ( Vector3 | integer $x, integer $y, integer $z ) : Vector3
$x Vector3 | integer
$y integer
$z integer
리턴 Vector3

프로퍼티 상세

$x 공개적으로 프로퍼티

public $x

$y 공개적으로 프로퍼티

public $y

$z 공개적으로 프로퍼티

public $z